1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # Dynamic csv manipulation library
//!
//! Dcsv is a dynamic csv container library which offers reading and writing features.
//!
//! # Basic
//!
//! Dcsv has two major structs of Reader and VirtualData. Reader reads csv data as byte stream and
//! return virtual data. Changes to virtual data is not linked to original source. User needs to
//! save virtual data to desired destination.
//!
//! If you want static form of data, use read_only_ref method to get data as records form.
//!
//! ## Usage
//!
//! ```no_run
//! // It is required to import VCont trait
//! use dcsv::VCont;
//! use dcsv::{Reader, VirtualData, Value};
//! use std::io::BufReader;
//! use std::fs::File;
//!
//! let data: VirtualData = Reader::new()
//! .use_delimiter(';') // Default is comma
//! .use_line_delimiter('|') // Default is '\n, \r\n'
//! .data_from_stream(
//! BufReader::new(
//! File::open("file_name.csv")
//! .expect("Failed to read file")
//! )
//! )
//! .expect("Failed to retrieve csv value from file");
//!
//! // Refer docs.rs for various VirtualData methods
//! let value : &Value = data.get_cell(1,1).expect("Failed to get cell");
pub use ;
pub use ;
pub use LIMITER_ATTRIBUTE_LEN;
pub use SCHEMA_HEADER;
pub use ;
pub use VCont;
pub use VirtualArray;
pub use ;