Enum csv::RecordTerminator [−][src]
pub enum RecordTerminator { CRLF, Any(u8), }
A record terminator.
Ideally, this would just be a u8
like any other delimiter, but a useful
CSV parser must special case CRLF handling. Hence, this enum.
Generally, you won't need to use this type because CRLF
is the default,
which is by far the most widely used record terminator.
Variants
CRLF
Parses \r
, \n
or \r\n
as a single record terminator.
Any(u8)
Parses the byte given as a record terminator.
Trait Implementations
impl Clone for RecordTerminator
[src]
impl Clone for RecordTerminator
fn clone(&self) -> RecordTerminator
[src]
fn clone(&self) -> RecordTerminator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for RecordTerminator
[src]
impl Copy for RecordTerminator
impl PartialEq<u8> for RecordTerminator
[src]
impl PartialEq<u8> for RecordTerminator
Auto Trait Implementations
impl Send for RecordTerminator
impl Send for RecordTerminator
impl Sync for RecordTerminator
impl Sync for RecordTerminator