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

Parses \r, \n or \r\n as a single record terminator.

Parses the byte given as a record terminator.

Trait Implementations

impl Clone for RecordTerminator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for RecordTerminator
[src]

impl PartialEq<u8> for RecordTerminator
[src]

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

This method tests for !=.