Skip to main content

Unit

Trait Unit 

Source
pub trait Unit {
    // Required methods
    fn zero() -> Self;
    fn half() -> Self;
    fn full() -> Self;
}

Required Methods§

Source

fn zero() -> Self

Source

fn half() -> Self

Source

fn full() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Unit for css_style::margin::Length

Source§

impl Unit for css_style::padding::Length

Source§

impl Unit for css_style::size::Length

Source§

impl Unit for LengthPercent