[][src]Struct data_reader::reader::ReaderParams

pub struct ReaderParams {
    pub comments: Option<u8>,
    pub delimiter: Delimiter,
    pub skip_header: Option<usize>,
    pub skip_footer: Option<usize>,
    pub usecols: Option<Vec<usize>>,
    pub max_rows: Option<usize>,
}

ReaderParams tells us what our reader should be doing.

delimiter - the delimiter that tells us what our data fields are seperated by

skip_header - an optional field that tells us whether or not we should skip so many lines that are not comment lines from the beginning of the file

skip_footer - an optional field that tells us whether or not we should skip so many lines that are not comment lines from the end of the file

usecols - an optional field that tells us what column numbers we should be using from the data field where these values should be >= 1. We don't use 0 indexing for these values.

max_rows - an optional field that tells us the maximum number of rows we should use from the file

Fields

comments: Option<u8>delimiter: Delimiterskip_header: Option<usize>skip_footer: Option<usize>usecols: Option<Vec<usize>>max_rows: Option<usize>

Trait Implementations

impl Default for ReaderParams[src]

You can use the default constructor like this:

let params = ReaderParams::default(); or you could do

something like -
let params = ReaderParams{ comments: Some(b'%'), ..Default::default() };

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.