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

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§