pub type ZeroToOneNumber = ZeroToOne<CSSFloat>;
Expand description
A wrapper of Number, but the value between 0 and 1
Aliased Type§
#[repr(transparent)]pub struct ZeroToOneNumber(pub f32);
Tuple Fields§
§0: f32
Trait Implementations§
Source§impl From<f32> for ZeroToOneNumber
impl From<f32> for ZeroToOneNumber
Source§impl ToAnimatedValue for ZeroToOneNumber
impl ToAnimatedValue for ZeroToOneNumber
Source§type AnimatedValue = f32
type AnimatedValue = f32
The type of the animated value.
Source§fn to_animated_value(self, _: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, _: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
Source§fn from_animated_value(animated: Self::AnimatedValue) -> Self
fn from_animated_value(animated: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.