pub enum LineTerminator {
Lf,
CrLf,
}Expand description
The line terminator a dialect writes between rows (and tolerates when reading).
Variants§
Lf
A single line feed (\n) – the Unix convention.
CrLf
A carriage return + line feed (\r\n) – the RFC-4180 / DOS convention.
Implementations§
Trait Implementations§
Source§impl Clone for LineTerminator
impl Clone for LineTerminator
Source§fn clone(&self) -> LineTerminator
fn clone(&self) -> LineTerminator
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 LineTerminator
Source§impl Debug for LineTerminator
impl Debug for LineTerminator
impl Eq for LineTerminator
Source§impl PartialEq for LineTerminator
impl PartialEq for LineTerminator
Source§fn eq(&self, other: &LineTerminator) -> bool
fn eq(&self, other: &LineTerminator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineTerminator
Auto Trait Implementations§
impl Freeze for LineTerminator
impl RefUnwindSafe for LineTerminator
impl Send for LineTerminator
impl Sync for LineTerminator
impl Unpin for LineTerminator
impl UnsafeUnpin for LineTerminator
impl UnwindSafe for LineTerminator
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