pub enum EmptyLineHandling {
ParseAlways,
IgnoreEmpty,
IgnoreBlank,
}
Expand description
Controls how the parser deals with lines that contain no JSON values.
Variants§
ParseAlways
Parse every line, i.e. every segment between \n
characters, even if it is empty. This will
result in errors for empty lines.
IgnoreEmpty
Ignore lines, i.e. segments between \n
characters, which are empty, i.e. contain no
characters. For compatibility with \r\n
-style linebreaks, this also ignores lines which
consist of only a single \r
character.
IgnoreBlank
Ignore lines, i.e. segments between \n
characters, which contain only whitespace
characters.
Trait Implementations§
Source§impl Clone for EmptyLineHandling
impl Clone for EmptyLineHandling
Source§fn clone(&self) -> EmptyLineHandling
fn clone(&self) -> EmptyLineHandling
Returns a copy 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 EmptyLineHandling
impl Debug for EmptyLineHandling
Source§impl Default for EmptyLineHandling
impl Default for EmptyLineHandling
Source§fn default() -> EmptyLineHandling
fn default() -> EmptyLineHandling
Returns the “default value” for a type. Read more
Source§impl Hash for EmptyLineHandling
impl Hash for EmptyLineHandling
Source§impl PartialEq for EmptyLineHandling
impl PartialEq for EmptyLineHandling
impl Copy for EmptyLineHandling
impl Eq for EmptyLineHandling
impl StructuralPartialEq for EmptyLineHandling
Auto Trait Implementations§
impl Freeze for EmptyLineHandling
impl RefUnwindSafe for EmptyLineHandling
impl Send for EmptyLineHandling
impl Sync for EmptyLineHandling
impl Unpin for EmptyLineHandling
impl UnwindSafe for EmptyLineHandling
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