Skip to main content
Number
style
0.18.0
Number
Trait Implementations
ToFloat
In style::
values::
computed
style
::
values
::
computed
Type Alias
Number
Copy item path
Source
pub type Number =
CSSFloat
;
Expand description
A
<number>
value.
Trait Implementations
§
Source
§
impl
ToFloat
for
Number
Source
§
fn
to_f32
(&self) ->
Result
<
f32
,
()
>
Return the number as an f32, or Err(()) if the conversion is not possible.
Source
§
fn
to_f64
(&self) ->
Result
<
f64
,
()
>
Return the number as an f64, or Err(()) if the conversion is not possible.