Struct style::values::generics::NonNegative
[−]
[src]
pub struct NonNegative<T>(pub T);
A wrapper of Non-negative values.
Trait Implementations
impl<T> Animate for NonNegative<T> where
T: Animate,
[src]
T: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl<T: Clone> Clone for NonNegative<T>
[src]
fn clone(&self) -> NonNegative<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> ComputeSquaredDistance for NonNegative<T> where
T: ComputeSquaredDistance,
[src]
T: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.
impl<T: Copy> Copy for NonNegative<T>
[src]
impl<T: Debug> Debug for NonNegative<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> MallocSizeOf for NonNegative<T> where
T: MallocSizeOf,
[src]
T: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<T: PartialEq> PartialEq for NonNegative<T>
[src]
fn eq(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests for !=
.
impl<T: PartialOrd> PartialOrd for NonNegative<T>
[src]
fn partial_cmp(&self, __arg_0: &NonNegative<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &NonNegative<T>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> ToAnimatedZero for NonNegative<T> where
T: ToAnimatedZero,
[src]
T: ToAnimatedZero,
fn to_animated_zero(&self) -> Result<Self, ()>
[src]
Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more
impl<T> ToComputedValue for NonNegative<T> where
T: ToComputedValue,
[src]
T: ToComputedValue,
type ComputedValue = NonNegative<<T as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more
impl<T> ToCss for NonNegative<T> where
T: ToCss,
[src]
T: ToCss,