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]
fn clone(&self) -> RecordTerminator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more