pub type Length = CSSPixelLength;Expand description
An alias of computed <length> value.
Aliased Type§
#[repr(C)]pub struct Length(f32);Tuple Fields§
§0: f32Trait Implementations§
Source§impl ClampToNonNegative for Length
impl ClampToNonNegative for Length
Source§fn clamp_to_non_negative(self) -> Self
fn clamp_to_non_negative(self) -> Self
Clamps the value to be non-negative after an animation.
Source§impl ToAbsoluteLength for Length
impl ToAbsoluteLength for Length
Source§fn to_pixel_length(
&self,
_containing_len: Option<ComputedLength>,
) -> Result<CSSFloat, ()>
fn to_pixel_length( &self, _containing_len: Option<ComputedLength>, ) -> Result<CSSFloat, ()>
Returns the absolute length as pixel value.