Type Alias style::values::computed::GreaterThanOrEqualToOneNumber
source · pub type GreaterThanOrEqualToOneNumber = GreaterThanOrEqualToOne<CSSFloat>;
Expand description
A wrapper of Number, but the value >= 1.
Aliased Type§
struct GreaterThanOrEqualToOneNumber(pub f32);
Fields§
§0: f32
Trait Implementations§
source§impl From<f32> for GreaterThanOrEqualToOneNumber
impl From<f32> for GreaterThanOrEqualToOneNumber
source§fn from(number: CSSFloat) -> GreaterThanOrEqualToOneNumber
fn from(number: CSSFloat) -> GreaterThanOrEqualToOneNumber
Converts to this type from the input type.
source§impl ToAnimatedValue for GreaterThanOrEqualToOneNumber
impl ToAnimatedValue for GreaterThanOrEqualToOneNumber
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.