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

Parses the byte given as a record terminator.

Trait Implementations

impl PartialEq<u8> for RecordTerminator

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

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

Derived Implementations

impl Copy for RecordTerminator

impl Clone for RecordTerminator

fn clone(&self) -> RecordTerminator

fn clone_from(&mut self, source: &Self)