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<Table>
Finds the first table in html.
fn find_by_id(html: &str, id: &str) -> Option<Table>
Finds the table in html with an id of id.
fn find_by_headers<T>(html: &str, headers: &[T]) -> Option<Table> where
T: AsRef<str>,
T: AsRef<str>,
Finds the table in html whose first row contains all of the headers
specified in headers. The order does not matter.
If headers is empty, this is the same as
find_first.
fn headers(&self) -> &Headers
Returns the headers of the table.
This will be empty if the table had no <th> tags in its first row. See
Headers for more.
fn iter(&self) -> Iter
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 !=.