Type Alias style::values::computed::NonNegativeNumberOrPercentage
source · pub type NonNegativeNumberOrPercentage = NonNegative<NumberOrPercentage>;
Expand description
A non-negative
Aliased Type§
struct NonNegativeNumberOrPercentage(pub NumberOrPercentage);
Fields§
§0: NumberOrPercentage
Implementations§
source§impl NonNegativeNumberOrPercentage
impl NonNegativeNumberOrPercentage
sourcepub fn hundred_percent() -> Self
pub fn hundred_percent() -> Self
Returns the 100%
value.
Trait Implementations§
source§impl ToAnimatedValue for NonNegativeNumberOrPercentage
impl ToAnimatedValue for NonNegativeNumberOrPercentage
§type AnimatedValue = NumberOrPercentage
type AnimatedValue = NumberOrPercentage
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.