pub enum WhiteSpaceCollapseStyleValue {
Collapse(Ident),
Discard(Ident),
Preserve(Ident),
PreserveBreaks(Ident),
PreserveSpaces(Ident),
BreakSpaces(Ident),
}Expand description
Represents the style value for white-space-collapse as defined in css-text-4.
The white-space-collapse CSS property sets whether new line characters are shown as line breaks, and whether multiple consecutive spaces are all displayed or combined.
The grammar is defined as:
collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spacesVariants§
Collapse(Ident)
Discard(Ident)
Preserve(Ident)
PreserveBreaks(Ident)
PreserveSpaces(Ident)
BreakSpaces(Ident)
Trait Implementations§
Source§impl Clone for WhiteSpaceCollapseStyleValue
impl Clone for WhiteSpaceCollapseStyleValue
Source§fn clone(&self) -> WhiteSpaceCollapseStyleValue
fn clone(&self) -> WhiteSpaceCollapseStyleValue
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 WhiteSpaceCollapseStyleValue
impl Debug for WhiteSpaceCollapseStyleValue
Source§impl Hash for WhiteSpaceCollapseStyleValue
impl Hash for WhiteSpaceCollapseStyleValue
Source§impl Ord for WhiteSpaceCollapseStyleValue
impl Ord for WhiteSpaceCollapseStyleValue
Source§fn cmp(&self, other: &WhiteSpaceCollapseStyleValue) -> Ordering
fn cmp(&self, other: &WhiteSpaceCollapseStyleValue) -> 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 WhiteSpaceCollapseStyleValue
impl<'a> Parse<'a> for WhiteSpaceCollapseStyleValue
Source§impl PartialEq for WhiteSpaceCollapseStyleValue
impl PartialEq for WhiteSpaceCollapseStyleValue
Source§fn eq(&self, other: &WhiteSpaceCollapseStyleValue) -> bool
fn eq(&self, other: &WhiteSpaceCollapseStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WhiteSpaceCollapseStyleValue
impl PartialOrd for WhiteSpaceCollapseStyleValue
Source§impl<'a> Peek<'a> for WhiteSpaceCollapseStyleValue
impl<'a> Peek<'a> for WhiteSpaceCollapseStyleValue
Source§impl ToCursors for WhiteSpaceCollapseStyleValue
impl ToCursors for WhiteSpaceCollapseStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for WhiteSpaceCollapseStyleValue
impl StructuralPartialEq for WhiteSpaceCollapseStyleValue
Auto Trait Implementations§
impl Freeze for WhiteSpaceCollapseStyleValue
impl RefUnwindSafe for WhiteSpaceCollapseStyleValue
impl Send for WhiteSpaceCollapseStyleValue
impl Sync for WhiteSpaceCollapseStyleValue
impl Unpin for WhiteSpaceCollapseStyleValue
impl UnwindSafe for WhiteSpaceCollapseStyleValue
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