pub enum LetterSpacingStyleValue {
Normal(Ident),
LengthPercentage(LengthPercentage),
}Expand description
Represents the style value for letter-spacing as defined in css-text-4.
The letter-spacing CSS property controls the amount of space between each letter in an element or block of text.
The grammar is defined as:
normal | <length-percentage>Variants§
Normal(Ident)
LengthPercentage(LengthPercentage)
Trait Implementations§
Source§impl Clone for LetterSpacingStyleValue
impl Clone for LetterSpacingStyleValue
Source§fn clone(&self) -> LetterSpacingStyleValue
fn clone(&self) -> LetterSpacingStyleValue
Returns a duplicate 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 Debug for LetterSpacingStyleValue
impl Debug for LetterSpacingStyleValue
Source§impl Hash for LetterSpacingStyleValue
impl Hash for LetterSpacingStyleValue
Source§impl Ord for LetterSpacingStyleValue
impl Ord for LetterSpacingStyleValue
Source§fn cmp(&self, other: &LetterSpacingStyleValue) -> Ordering
fn cmp(&self, other: &LetterSpacingStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for LetterSpacingStyleValue
impl<'a> Parse<'a> for LetterSpacingStyleValue
Source§impl PartialEq for LetterSpacingStyleValue
impl PartialEq for LetterSpacingStyleValue
Source§impl PartialOrd for LetterSpacingStyleValue
impl PartialOrd for LetterSpacingStyleValue
Source§impl<'a> Peek<'a> for LetterSpacingStyleValue
impl<'a> Peek<'a> for LetterSpacingStyleValue
Source§impl ToCursors for LetterSpacingStyleValue
impl ToCursors for LetterSpacingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for LetterSpacingStyleValue
impl StructuralPartialEq for LetterSpacingStyleValue
Auto Trait Implementations§
impl Freeze for LetterSpacingStyleValue
impl RefUnwindSafe for LetterSpacingStyleValue
impl Send for LetterSpacingStyleValue
impl Sync for LetterSpacingStyleValue
impl Unpin for LetterSpacingStyleValue
impl UnwindSafe for LetterSpacingStyleValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more