Trait taffy::style_helpers::FromLength

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

Trait to create absolute length values from plain numbers

Required Methods§

source

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

Converts into an Into<f32> into Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromLength for Option<f32>

source§

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

source§

impl FromLength for f32

source§

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

Implementors§