Struct nu_plugin_selector::Table
source · [−]Fields
data: Vec<Vec<String>>
Implementations
sourceimpl Table
impl Table
sourcepub fn find_first(html: &str) -> Option<Table>
pub fn find_first(html: &str) -> Option<Table>
Finds the first table in html
.
pub fn find_all_tables(html: &str) -> Option<Vec<Table>>
sourcepub fn find_by_id(html: &str, id: &str) -> Option<Table>
pub fn find_by_id(html: &str, id: &str) -> Option<Table>
Finds the table in html
with an id of id
.
sourcepub fn find_by_headers<T>(html: &str, headers: &[T]) -> Option<Vec<Table>> where
T: AsRef<str>,
pub fn find_by_headers<T>(html: &str, headers: &[T]) -> Option<Vec<Table>> where
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
.
sourcepub fn headers(&self) -> &HashMap<String, usize>
pub fn headers(&self) -> &HashMap<String, usize>
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.
pub fn empty() -> Table
Trait Implementations
sourceimpl<'a> IntoIterator for &'a Table
impl<'a> IntoIterator for &'a Table
impl Eq for Table
impl StructuralEq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> SpannedItem for T
impl<T> SpannedItem for T
sourceimpl<T> TaggedItem for T
impl<T> TaggedItem for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more