Type Alias style::values::computed::PositiveInteger

source ·
pub type PositiveInteger = GreaterThanOrEqualToOne<CSSInteger>;
Expand description

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

Aliased Type§

struct PositiveInteger(pub i32);

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

§

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.