Struct style::values::generics::GreaterThanOrEqualToOne
[−]
[src]
pub struct GreaterThanOrEqualToOne<T>(pub T);
A wrapper of greater-than-or-equal-to-one values.
Trait Implementations
impl<T> Animate for GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<T>
[src]
fn clone(&self) -> GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<T>
[src]
impl<T: Debug> Debug for GreaterThanOrEqualToOne<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> MallocSizeOf for GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<T>
[src]
fn eq(&self, __arg_0: &GreaterThanOrEqualToOne<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: &GreaterThanOrEqualToOne<T>) -> bool
[src]
This method tests for !=
.
impl<T: PartialOrd> PartialOrd for GreaterThanOrEqualToOne<T>
[src]
fn partial_cmp(&self, __arg_0: &GreaterThanOrEqualToOne<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &GreaterThanOrEqualToOne<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: &GreaterThanOrEqualToOne<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: &GreaterThanOrEqualToOne<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: &GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<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 GreaterThanOrEqualToOne<T> where
T: ToComputedValue,
[src]
T: ToComputedValue,
type ComputedValue = GreaterThanOrEqualToOne<<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 GreaterThanOrEqualToOne<T> where
T: ToCss,
[src]
T: ToCss,