pub type NonNegativeLength = NonNegative<Length>;
Expand description
A wrapper of Length, whose value must be >= 0.
Implementations§
Trait Implementations§
source§impl From<Au> for NonNegativeLength
impl From<Au> for NonNegativeLength
source§impl From<CSSPixelLength> for NonNegativeLength
impl From<CSSPixelLength> for NonNegativeLength
source§impl ToAnimatedValue for NonNegativeLength
impl ToAnimatedValue for NonNegativeLength
§type AnimatedValue = CSSPixelLength
type AnimatedValue = CSSPixelLength
The type of the animated value.
source§fn to_animated_value(self) -> Self::AnimatedValue
fn to_animated_value(self) -> 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.