#[non_exhaustive]pub enum WhiteSpace {
BreakSpaces,
Collapse,
Normal,
Nowrap,
Pre,
PreLine,
PreWrap,
Preserve,
PreserveBreaks,
PreserveSpaces,
Wrap,
Raw(Raw),
}Expand description
A value of white-space.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BreakSpaces
break-spaces.
Collapse
collapse.
Normal
normal.
Nowrap
nowrap.
Pre
pre.
PreLine
pre-line.
PreWrap
pre-wrap.
Preserve
preserve.
PreserveBreaks
preserve-breaks.
PreserveSpaces
preserve-spaces.
Wrap
wrap.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for WhiteSpace
impl Clone for WhiteSpace
Source§fn clone(&self) -> WhiteSpace
fn clone(&self) -> WhiteSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WhiteSpace
impl Debug for WhiteSpace
Source§impl Display for WhiteSpace
impl Display for WhiteSpace
Source§impl From<Raw> for WhiteSpace
impl From<Raw> for WhiteSpace
Source§impl PartialEq for WhiteSpace
impl PartialEq for WhiteSpace
impl StructuralPartialEq for WhiteSpace
Auto Trait Implementations§
impl Freeze for WhiteSpace
impl RefUnwindSafe for WhiteSpace
impl Send for WhiteSpace
impl Sync for WhiteSpace
impl Unpin for WhiteSpace
impl UnsafeUnpin for WhiteSpace
impl UnwindSafe for WhiteSpace
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