pub enum ToplevelWhitespaceMode {
Document,
Value,
}
Expand description
TextReader chooses Document
mode to treat whitespace preceding end-of-file as a “no
more values” non-error situation, or Value
mode to treat it as an “expected more input”
situation.
The Preserves syntax for Value
treats any input at all, even whitespace, as an indicator
that a term is to follow. However, when using a TextReader to parse a series of Value
s
in a Document
, whitespace followed by EOF is to be treated as the permitted optional
whitespace at the end of a `Document.
Variants§
Auto Trait Implementations§
impl Freeze for ToplevelWhitespaceMode
impl RefUnwindSafe for ToplevelWhitespaceMode
impl Send for ToplevelWhitespaceMode
impl Sync for ToplevelWhitespaceMode
impl Unpin for ToplevelWhitespaceMode
impl UnwindSafe for ToplevelWhitespaceMode
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