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 Copy for RecordTerminator
[src]

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

impl PartialEq<u8> for RecordTerminator
[src]

fn eq(&self, other: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.