Multiple

Trait Multiple 

Source
pub trait Multiple: Sized {
    // Required methods
    fn from_any(value: f64, multiple: Any) -> SpecificSize<Self>;
    fn into_any(size: SpecificSize<Self>) -> (f64, Any);
}
Expand description

Trait to convert a SpecificSize to and from different multiples.

Required Methods§

Source

fn from_any(value: f64, multiple: Any) -> SpecificSize<Self>

Create a new SpecificSize from a value and multiple, the provided value must always valid (see SpecificSize::new).

Source

fn into_any(size: SpecificSize<Self>) -> (f64, Any)

The opposite of from_any, converting self into the value and the generic multiple.

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.

Implementors§