Trait style::values::generics::transform::ToAbsoluteLength

source ·
pub trait ToAbsoluteLength {
    // Required method
    fn to_pixel_length(
        &self,
        containing_len: Option<ComputedLength>,
    ) -> Result<CSSFloat, ()>;
}
Expand description

Convert a length type into the absolute lengths.

Required Methods§

source

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

Returns the absolute length as pixel value.

Implementors§

source§

impl ToAbsoluteLength for style::values::specified::length::Length

source§

impl ToAbsoluteLength for style::values::specified::length::LengthPercentage

source§

impl ToAbsoluteLength for style::values::computed::length_percentage::LengthPercentage

source§

impl ToAbsoluteLength for style::values::computed::length::Length