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, the cells can
be safely accessed by header name using [get].
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 the header 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.