Trait Unit

Source
pub trait Unit {
    // Required methods
    fn percent(&self) -> Length;
    fn pixels(&self) -> Length;
}

Required Methods§

Source

fn percent(&self) -> Length

Source

fn pixels(&self) -> Length

Implementors§

Source§

impl<T: Into<i32> + Clone> Unit for T