pub enum WordSpacingStyleValue {
Normal(Ident),
LengthPercentage(LengthPercentage),
}Expand description
Represents the style value for word-spacing as defined in css-text-4.
The word-spacing CSS property sets the amount of white space between words.
The grammar is defined as:
normal | <length-percentage>Variants§
Normal(Ident)
LengthPercentage(LengthPercentage)
Trait Implementations§
Source§impl Clone for WordSpacingStyleValue
impl Clone for WordSpacingStyleValue
Source§fn clone(&self) -> WordSpacingStyleValue
fn clone(&self) -> WordSpacingStyleValue
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 WordSpacingStyleValue
impl Debug for WordSpacingStyleValue
Source§impl Hash for WordSpacingStyleValue
impl Hash for WordSpacingStyleValue
Source§impl Ord for WordSpacingStyleValue
impl Ord for WordSpacingStyleValue
Source§fn cmp(&self, other: &WordSpacingStyleValue) -> Ordering
fn cmp(&self, other: &WordSpacingStyleValue) -> 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 WordSpacingStyleValue
impl<'a> Parse<'a> for WordSpacingStyleValue
Source§impl PartialEq for WordSpacingStyleValue
impl PartialEq for WordSpacingStyleValue
Source§impl PartialOrd for WordSpacingStyleValue
impl PartialOrd for WordSpacingStyleValue
Source§impl<'a> Peek<'a> for WordSpacingStyleValue
impl<'a> Peek<'a> for WordSpacingStyleValue
Source§impl ToCursors for WordSpacingStyleValue
impl ToCursors for WordSpacingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for WordSpacingStyleValue
impl StructuralPartialEq for WordSpacingStyleValue
Auto Trait Implementations§
impl Freeze for WordSpacingStyleValue
impl RefUnwindSafe for WordSpacingStyleValue
impl Send for WordSpacingStyleValue
impl Sync for WordSpacingStyleValue
impl Unpin for WordSpacingStyleValue
impl UnwindSafe for WordSpacingStyleValue
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