Type Alias PositiveInteger

Source
pub type PositiveInteger = GreaterThanOrEqualToOne<CSSInteger>;
Expand description

A wrapper of Integer, but only accept a value >= 1.

Aliased Type§

#[repr(transparent)]
pub struct PositiveInteger(pub i32);

Tuple Fields§

§0: i32

Trait Implementations§

Source§

impl From<i32> for PositiveInteger

Source§

fn from(int: CSSInteger) -> PositiveInteger

Converts to this type from the input type.
Source§

impl ToAnimatedValue for PositiveInteger

Source§

type AnimatedValue = i32

The type of the animated value.
Source§

fn to_animated_value(self, _: &Context<'_>) -> Self::AnimatedValue

Converts this value to an animated value.
Source§

fn from_animated_value(animated: Self::AnimatedValue) -> Self

Converts back an animated value into a computed value.