QuantitySchema

Trait QuantitySchema 

Source
pub trait QuantitySchema {
    // Required method
    fn type_id() -> Cow<'static, str>;

    // Provided method
    fn description() -> Cow<'static, str> { ... }
}

Required Methods§

Source

fn type_id() -> Cow<'static, str>

Provided Methods§

Source

fn description() -> Cow<'static, str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl QuantitySchema for Area

Source§

fn type_id() -> Cow<'static, str>

Source§

impl QuantitySchema for Length

Source§

fn type_id() -> Cow<'static, str>

Source§

impl QuantitySchema for Time

Source§

fn type_id() -> Cow<'static, str>

Source§

impl QuantitySchema for Velocity

Source§

fn type_id() -> Cow<'static, str>

Implementors§