Struct table_extract::Table
[−]
[src]
pub struct Table { /* fields omitted */ }A parsed HTML table.
See the module level documentation for more.
Methods
impl Table[src]
fn find_first(html: &str) -> Option<Self>
Finds the first table in html.
Returns [None] if there is no table.
fn find_by_id(html: &str, id: &str) -> Option<Self>
Finds the table in html with an id of id.
Returns [None] if there is no such table.
fn find_by_headers(html: &str, headers: &HashSet<String>) -> Option<Self>
Finds the table in html that has a <th> header for each of the
strings in headers in its first row.
If headers is empty, this is the same as [find_first].
Returns [None] if there is no such table.
fn headers(&self) -> &Headers
Returns the table headers.
This will be empty if the table had no <th> tags in its first row.
fn iter(&self) -> Iter
Returns an iterator over the rows of the table.
Trait Implementations
impl Debug for Table[src]
impl Eq for Table[src]
impl PartialEq for Table[src]
fn eq(&self, __arg_0: &Table) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Table) -> bool
This method tests for !=.