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]

Returns the number of cells in the row.

Returns true if the row contains no cells.

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.

Returns a slice containing all the cells.

Returns an iterator over the cells of the row.

Trait Implementations

impl<'a> Clone for Row<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Row<'a>
[src]

impl<'a> Debug for Row<'a>
[src]

Formats the value using the given formatter.

impl<'a> Eq for Row<'a>
[src]

impl<'a> PartialEq for Row<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> IntoIterator for Row<'a>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more