#[repr(transparent)]pub struct LetterSpacing(pub Length);
Expand description
A computed value for the letter-spacing
property.
Tuple Fields§
§0: Length
Implementations§
source§impl LetterSpacing
impl LetterSpacing
Trait Implementations§
source§impl Animate for LetterSpacing
impl Animate for LetterSpacing
source§impl Clone for LetterSpacing
impl Clone for LetterSpacing
source§fn clone(&self) -> LetterSpacing
fn clone(&self) -> LetterSpacing
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ComputeSquaredDistance for LetterSpacing
impl ComputeSquaredDistance for LetterSpacing
source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.
source§impl Debug for LetterSpacing
impl Debug for LetterSpacing
source§impl MallocSizeOf for LetterSpacing
impl MallocSizeOf for LetterSpacing
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq<LetterSpacing> for LetterSpacing
impl PartialEq<LetterSpacing> for LetterSpacing
source§fn eq(&self, other: &LetterSpacing) -> bool
fn eq(&self, other: &LetterSpacing) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToAnimatedValue for LetterSpacingwhere
Length: ToAnimatedValue<AnimatedValue = Length>,
impl ToAnimatedValue for LetterSpacingwhere Length: ToAnimatedValue<AnimatedValue = Length>,
§type AnimatedValue = LetterSpacing
type AnimatedValue = LetterSpacing
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self) -> Self::AnimatedValue
fn to_animated_value(self) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl ToAnimatedZero for LetterSpacing
impl ToAnimatedZero for LetterSpacing
source§fn to_animated_zero(&self) -> Result<Self, ()>
fn to_animated_zero(&self) -> Result<Self, ()>
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
source§impl ToCss for LetterSpacing
impl ToCss for LetterSpacing
source§impl ToResolvedValue for LetterSpacingwhere
Length: ToResolvedValue<ResolvedValue = Length>,
impl ToResolvedValue for LetterSpacingwhere Length: ToResolvedValue<ResolvedValue = Length>,
§type ResolvedValue = LetterSpacing
type ResolvedValue = LetterSpacing
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
impl Copy for LetterSpacing
impl StructuralPartialEq for LetterSpacing
Auto Trait Implementations§
impl RefUnwindSafe for LetterSpacing
impl Send for LetterSpacing
impl Sync for LetterSpacing
impl Unpin for LetterSpacing
impl UnwindSafe for LetterSpacing
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert