Skip to main content

UnitExt

Trait UnitExt 

Source
pub trait UnitExt {
    // Required methods
    fn pct(self) -> Pct;
    fn px(self) -> Px;
}

Required Methods§

Source

fn pct(self) -> Pct

Source

fn px(self) -> Px

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl UnitExt for f64

Source§

fn pct(self) -> Pct

Source§

fn px(self) -> Px

Source§

impl UnitExt for i32

Source§

fn pct(self) -> Pct

Source§

fn px(self) -> Px

Implementors§