pub struct Table { /* private fields */ }Expand description
A parsed DBF header plus the record area it describes.
Implementations§
Source§impl Table
impl Table
Sourcepub fn new(data: DbfData, opts: &ReadOptions) -> Result<Table, Error>
pub fn new(data: DbfData, opts: &ReadOptions) -> Result<Table, Error>
Validate the header of data and decide which columns to read and
with which types.
Sourcepub fn columns(&self) -> impl ExactSizeIterator<Item = &Field> + '_
pub fn columns(&self) -> impl ExactSizeIterator<Item = &Field> + '_
Selected columns, in file order.
pub fn n_cols(&self) -> usize
Sourcepub fn n_rows(&self) -> usize
pub fn n_rows(&self) -> usize
Number of rows that reading will produce (live records, capped by
n_max).
Sourcepub fn declared_records(&self) -> u32
pub fn declared_records(&self) -> u32
Record count declared in the header (includes deleted records).
pub fn encoding(&self) -> Encoding
Sourcepub fn warnings(&self) -> &[String]
pub fn warnings(&self) -> &[String]
Non-fatal problems found in the file (e.g. missing records).
Sourcepub fn unmatched_select(&self) -> &[String]
pub fn unmatched_select(&self) -> &[String]
Names in select that matched no field.
pub fn data(&self) -> &DbfData
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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