[][src]Module data_reader::reader

Contains all of the functions related to the different readers that will be generated.

Re-exports

pub use self::float_reader::*;
pub use self::int_reader::*;
pub use self::parser::parse_txt;
pub use self::prim_reader::*;
pub use self::uint_reader::*;

Modules

float_reader
int_reader
parser
prim_reader
uint_reader

Structs

RawReaderResults

A structure that contains all of the raw results. It tells us the number of fields we had along with the number of lines that we read. Results contains all of the data that was read in from the file in its raw u8 format. The index field contains the starting index for each field that was read in.

ReaderParams

ReaderParams tells us what our reader should be doing.

ReaderResults

A structure that contains all of the results. It tells us the number of fields we had along with the number of lines that we read. Finally, the results are stored in a single Vec of type T. Type T is what type one called load_txt_* for.

Enums

Delimiter

The type of delimiter that we can use

Functions

read_num_file_lines

It simply reads all of the lines in the file when an end of line is denoted by \n or \r. A comment character is provided and if it is seen then before any nonwhite space the line is not counted in the total.

read_num_file_tot_lines

It simply reads all of the lines in the file when an end of line is denoted by \n. It does not take into account whether any line is a comment or not.