Struct dcsv::Reader

source · []
pub struct Reader {
    pub data: VirtualData,
    /* private fields */
}
Expand description

Csv Reader

User can set various reader option to configure a reading behaviour. Reader’s options are not dropped after a read but persists for reader’s lifetime.

Fields

data: VirtualData

Implementations

Ignore empty row

This prevents reader from panicking on empty row.

Trim all values

Whether csv data has header or not

Read csv value from buf read stream

This return read value as virtual data struct

Use given delimiter instead of default one : “,”.

Use line delimiter instead of default one : “\n”.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.