taffy::style_helpers

Trait FromFlex

source
pub trait FromFlex {
    // Required method
    fn from_flex<Input: Into<f32> + Copy>(flex: Input) -> Self;
}
Expand description

Trait to create constant percent values from plain numbers

Required Methods§

source

fn from_flex<Input: Into<f32> + Copy>(flex: Input) -> Self

Converts into an Into<f32> into Self

Object Safety§

This trait is not object safe.

Implementors§