Trait lay_rs::prelude::taffy::style_helpers::FromLength

pub trait FromLength {
    // Required method
    fn from_length<Input>(value: Input) -> Self
       where Input: Into<f32> + Copy;
}
Expand description

Trait to create absolute length values from plain numbers

Required Methods§

fn from_length<Input>(value: Input) -> Self
where Input: Into<f32> + Copy,

Converts into an Into<f32> into Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl FromLength for Option<f32>

§

fn from_length<Input>(value: Input) -> Option<f32>
where Input: Into<f32> + Copy,

§

impl FromLength for f32

§

fn from_length<Input>(value: Input) -> f32
where Input: Into<f32> + Copy,

Implementors§