LengthExt

Trait LengthExt 

Source
pub trait LengthExt {
    // Required method
    fn to_pixels(
        &self,
        base_size: AbsoluteLength,
        rem_size: Pixels,
    ) -> Option<Pixels>;
}

Required Methods§

Source

fn to_pixels( &self, base_size: AbsoluteLength, rem_size: Pixels, ) -> Option<Pixels>

Converts the Length to Pixels based on a given base_size and rem_size.

If the Length is Auto, it returns None.

Implementations on Foreign Types§

Source§

impl LengthExt for Length

Source§

fn to_pixels( &self, base_size: AbsoluteLength, rem_size: Pixels, ) -> Option<Pixels>

Implementors§