Enum style::values::generics::text::LineHeight
[−]
[src]
pub enum LineHeight<Number, LengthOrPercentage> {
Normal,
Number(Number),
Length(LengthOrPercentage),
}A generic value for the line-height property.
Variants
Normalnormal
Number(Number)<number>
Length(LengthOrPercentage)<length-or-percentage>
Methods
impl<N, L> LineHeight<N, L>[src]
Trait Implementations
impl<Number, LengthOrPercentage> Animate for LineHeight<Number, LengthOrPercentage> where
Number: Animate,
LengthOrPercentage: Animate, [src]
Number: Animate,
LengthOrPercentage: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>[src]
Animate a value towards another one, given an animation procedure.
impl<Number: Clone, LengthOrPercentage: Clone> Clone for LineHeight<Number, LengthOrPercentage>[src]
fn clone(&self) -> LineHeight<Number, LengthOrPercentage>[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<Number, LengthOrPercentage> ComputeSquaredDistance for LineHeight<Number, LengthOrPercentage> where
Number: ComputeSquaredDistance,
LengthOrPercentage: ComputeSquaredDistance, [src]
Number: ComputeSquaredDistance,
LengthOrPercentage: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>[src]
Computes the squared distance between two animatable values.
impl<Number: Copy, LengthOrPercentage: Copy> Copy for LineHeight<Number, LengthOrPercentage>[src]
impl<Number: Debug, LengthOrPercentage: Debug> Debug for LineHeight<Number, LengthOrPercentage>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<Number, LengthOrPercentage> MallocSizeOf for LineHeight<Number, LengthOrPercentage> where
Number: MallocSizeOf,
LengthOrPercentage: MallocSizeOf, [src]
Number: MallocSizeOf,
LengthOrPercentage: 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<Number: PartialEq, LengthOrPercentage: PartialEq> PartialEq for LineHeight<Number, LengthOrPercentage>[src]
fn eq(&self, __arg_0: &LineHeight<Number, LengthOrPercentage>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LineHeight<Number, LengthOrPercentage>) -> bool[src]
This method tests for !=.
impl<Number, LengthOrPercentage> ToAnimatedValue for LineHeight<Number, LengthOrPercentage> where
Number: ToAnimatedValue,
LengthOrPercentage: ToAnimatedValue, [src]
Number: ToAnimatedValue,
LengthOrPercentage: ToAnimatedValue,
type AnimatedValue = LineHeight<<Number as ToAnimatedValue>::AnimatedValue, <LengthOrPercentage as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
fn to_animated_value(self) -> Self::AnimatedValue[src]
Converts this value to an animated value.
fn from_animated_value(animated: Self::AnimatedValue) -> Self[src]
Converts back an animated value into a computed value.
impl<Number, LengthOrPercentage> ToCss for LineHeight<Number, LengthOrPercentage> where
Number: ToCss,
LengthOrPercentage: ToCss, [src]
Number: ToCss,
LengthOrPercentage: ToCss,