#[repr(C)]pub struct vrttxt_reader {Show 22 fields
pub columns: [vrttxt_column_header; 65535],
pub text_file: *mut FILE,
pub toUtf8: *mut c_void,
pub field_separator: c_char,
pub text_separator: c_char,
pub decimal_separator: c_char,
pub first_line_titles: c_int,
pub error: c_int,
pub first: *mut vrttxt_row_block,
pub last: *mut vrttxt_row_block,
pub rows: *mut *mut vrttxt_row,
pub num_rows: c_int,
pub line_no: c_int,
pub max_fields: c_int,
pub current_buf_sz: c_int,
pub current_buf_off: c_int,
pub line_buffer: *mut c_char,
pub field_buffer: *mut c_char,
pub field_offsets: [c_int; 65535],
pub field_lens: [c_int; 65535],
pub max_current_field: c_int,
pub current_line_ready: c_int,
}Expand description
Container for Virtual Text file handling
Fields§
§columns: [vrttxt_column_header; 65535]array of columns (fields)
text_file: *mut FILEFILE handle
toUtf8: *mut c_voidhandle to ICONV converter object
field_separator: c_charfield separator character
text_separator: c_chartext separator character (quote)
decimal_separator: c_chardecimal separator
first_line_titles: c_intTRUE if the first line contains column names
error: c_intvalidity flag
first: *mut vrttxt_row_blockpointer to first block of records [linked list]
last: *mut vrttxt_row_blockpointer to last block of records [linked list]
rows: *mut *mut vrttxt_rowarray of pointers to individual records [lines]
num_rows: c_intnumber of records
line_no: c_intcurrent Line Number
max_fields: c_intmax number of columns (fields)
current_buf_sz: c_intcurrent buffer size
current_buf_off: c_intcurrent buffer offset [parsing]
line_buffer: *mut c_charI/O buffer
field_buffer: *mut c_charcurrent field buffer
field_offsets: [c_int; 65535]array of field offsets [current record]
field_lens: [c_int; 65535]array of field lengths [current record]
max_current_field: c_intmax field [current record]
current_line_ready: c_intcurrent record line ready for parsing
Trait Implementations§
Source§impl Clone for vrttxt_reader
impl Clone for vrttxt_reader
Source§fn clone(&self) -> vrttxt_reader
fn clone(&self) -> vrttxt_reader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for vrttxt_reader
Auto Trait Implementations§
impl Freeze for vrttxt_reader
impl RefUnwindSafe for vrttxt_reader
impl !Send for vrttxt_reader
impl !Sync for vrttxt_reader
impl Unpin for vrttxt_reader
impl UnwindSafe for vrttxt_reader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more