Trait taffy::style_helpers::FromPercent

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

Trait to create constant percent values from plain numbers

Required Methods§

source

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

Converts into an Into<f32> into Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromPercent for Option<f32>

source§

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

source§

impl FromPercent for f32

source§

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

Implementors§