pub enum WhitespaceMode {
Preserve,
Replace,
Collapse,
}Expand description
The three whitespace-handling modes defined by XSD §4.3.6.
Variants§
Preserve
Leave the lexical value as-is.
Replace
Replace each tab/CR/LF with a single space. No collapsing.
Collapse
Replace, then collapse runs of spaces to one and trim leading and
trailing spaces.
Implementations§
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
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