pub enum LineWriteMode {
AsIs,
AppendLf,
}Expand description
Controls how line-based write helpers delimit successive lines.
Variants§
AsIs
Write lines exactly as parsed, without appending any delimiter.
Use this when your mapper already includes delimiters or when the downstream format does not want line separators reintroduced.
AppendLf
Append a trailing \n after each emitted line.
This reconstructs conventional line-oriented output after parsing removed the original newline byte.
Trait Implementations§
Source§impl Clone for LineWriteMode
impl Clone for LineWriteMode
Source§fn clone(&self) -> LineWriteMode
fn clone(&self) -> LineWriteMode
Returns a duplicate 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 LineWriteMode
impl Debug for LineWriteMode
Source§impl PartialEq for LineWriteMode
impl PartialEq for LineWriteMode
impl Copy for LineWriteMode
impl Eq for LineWriteMode
impl StructuralPartialEq for LineWriteMode
Auto Trait Implementations§
impl Freeze for LineWriteMode
impl RefUnwindSafe for LineWriteMode
impl Send for LineWriteMode
impl Sync for LineWriteMode
impl Unpin for LineWriteMode
impl UnsafeUnpin for LineWriteMode
impl UnwindSafe for LineWriteMode
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