Trait lay_rs::prelude::taffy::FromPercent

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

Trait to create constant percent values from plain numbers

Required Methods§

fn from_percent<Input>(percent: 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 FromPercent for Option<f32>

§

fn from_percent<Input>(percent: Input) -> Option<f32>
where Input: Into<f32> + Copy,

§

impl FromPercent for f32

§

fn from_percent<Input>(percent: Input) -> f32
where Input: Into<f32> + Copy,

Implementors§