[−][src]Struct data_reader::reader::ReaderParams
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: Delimiter
skip_header: 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()
};
fn default() -> ReaderParams
[src]
Auto Trait Implementations
impl Send for ReaderParams
impl Sync for ReaderParams
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,