Type Alias Length

Source
pub type Length = CSSPixelLength;
Expand description

An alias of computed <length> value.

Aliased Type§

#[repr(C)]
pub struct Length(/* private fields */);

Trait Implementations§

Source§

impl ToAbsoluteLength for Length

Source§

fn to_pixel_length( &self, _containing_len: Option<ComputedLength>, ) -> Result<CSSFloat, ()>

Returns the absolute length as pixel value.