Skip to main content

LengthExt

Trait LengthExt 

Source
pub trait LengthExt {
    // Required methods
    fn px(self) -> Length;
    fn percent(self) -> Length;
    fn fill(self) -> Length;
}

Required Methods§

Source

fn px(self) -> Length

Source

fn percent(self) -> Length

Source

fn fill(self) -> Length

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LengthExt for f32

Source§

fn px(self) -> Length

Source§

fn percent(self) -> Length

Source§

fn fill(self) -> Length

Source§

impl LengthExt for i32

Source§

fn px(self) -> Length

Source§

fn percent(self) -> Length

Source§

fn fill(self) -> Length

Source§

impl LengthExt for u16

Source§

fn px(self) -> Length

Source§

fn percent(self) -> Length

Source§

fn fill(self) -> Length

Source§

impl LengthExt for u32

Source§

fn px(self) -> Length

Source§

fn percent(self) -> Length

Source§

fn fill(self) -> Length

Implementors§