Struct table_extract::Row
[−]
[src]
pub struct Row<'a> { /* fields omitted */ }A row in a Table.
A row consists of a number of data cells stored as strings. If the row
contains the same number of cells as the table's header row, its cells can
be safely accessed by header names using get. Otherwise,
the data should be accessed via as_slice or by
iterating over the row.
This struct can be thought of as a lightweight reference into a table. As
such, it implements the Copy trait.
Methods
impl<'a> Row<'a>[src]
fn len(&self) -> usize
Returns the number of cells in the row.
fn is_empty(&self) -> bool
Returns true if the row contains no cells.
fn get(&self, header: &str) -> Option<&'a str>
Returns the cell underneath header.
Returns None if there is no such header, or if there is no cell at
that position in the row.
fn as_slice(&self) -> &'a [String]
Returns a slice containing all the cells.
fn iter(&self) -> Iter<String>
Returns an iterator over the cells of the row.
Trait Implementations
impl<'a> Clone for Row<'a>[src]
fn clone(&self) -> Row<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Copy for Row<'a>[src]
impl<'a> Debug for Row<'a>[src]
impl<'a> Eq for Row<'a>[src]
impl<'a> PartialEq for Row<'a>[src]
fn eq(&self, __arg_0: &Row<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Row<'a>) -> bool
This method tests for !=.