pub enum WhitespaceMode {
Preserve,
Replace,
Collapse,
}Expand description
Whitespace handling mode
Variants§
Preserve
Preserve all whitespace
Replace
Replace tabs/newlines with spaces
Collapse
Collapse consecutive whitespace to single space, trim
Trait Implementations§
Source§impl Clone for WhitespaceMode
impl Clone for WhitespaceMode
Source§fn clone(&self) -> WhitespaceMode
fn clone(&self) -> WhitespaceMode
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 moreimpl Copy for WhitespaceMode
Source§impl Debug for WhitespaceMode
impl Debug for WhitespaceMode
Source§impl Default for WhitespaceMode
impl Default for WhitespaceMode
Source§fn default() -> WhitespaceMode
fn default() -> WhitespaceMode
Returns the “default value” for a type. Read more
impl Eq for WhitespaceMode
Source§impl PartialEq for WhitespaceMode
impl PartialEq for WhitespaceMode
Source§fn eq(&self, other: &WhitespaceMode) -> bool
fn eq(&self, other: &WhitespaceMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WhitespaceMode
Auto Trait Implementations§
impl Freeze for WhitespaceMode
impl RefUnwindSafe for WhitespaceMode
impl Send for WhitespaceMode
impl Sync for WhitespaceMode
impl Unpin for WhitespaceMode
impl UnsafeUnpin for WhitespaceMode
impl UnwindSafe for WhitespaceMode
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