[][src]Trait kuchiki::iter::NodeIterator

pub trait NodeIterator: Sized + Iterator<Item = NodeRef> {
    fn elements(self) -> Elements<Self> { ... }
fn text_nodes(self) -> TextNodes<Self> { ... }
fn comments(self) -> Comments<Self> { ... }
fn select(self, selectors: &str) -> Result<Select<Elements<Self>>, ()> { ... } }

Convenience methods for node iterators.

Provided methods

fn elements(self) -> Elements<Self>

Filter this element iterator to elements.

fn text_nodes(self) -> TextNodes<Self>

Filter this node iterator to text nodes.

fn comments(self) -> Comments<Self>

Filter this node iterator to comment nodes.

fn select(self, selectors: &str) -> Result<Select<Elements<Self>>, ()>

Filter this node iterator to elements maching the given selectors.

Loading content...

Implementors

impl<I> NodeIterator for I where
    I: Iterator<Item = NodeRef>, 
[src]

Loading content...