[][src]Struct select::document::Document

pub struct Document {
    pub nodes: Vec<Raw>,
}

An HTML document.

Fields

nodes: Vec<Raw>

Implementations

impl Document[src]

pub fn find<P: Predicate>(&self, predicate: P) -> Find<P>[src]

Returns a Selection containing nodes passing the given predicate p.

pub fn nth(&self, n: usize) -> Option<Node>[src]

Returns the nth node of the document as a Some(Node), indexed from 0, or None if n is greater than or equal to the number of nodes.

pub fn from_read<R: Read>(readable: R) -> Result<Document>[src]

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

impl<'a> From<&'a str> for Document[src]

fn from(str: &str) -> Document[src]

Parses the given &str into a Document.

impl From<Tendril<UTF8, NonAtomic>> for Document[src]

fn from(tendril: StrTendril) -> Document[src]

Parses the given StrTendril into a Document.

impl PartialEq<Document> for Document[src]

impl StructuralPartialEq for Document[src]

Auto Trait Implementations

impl !RefUnwindSafe for Document

impl !Send for Document

impl !Sync for Document

impl Unpin for Document

impl UnwindSafe for Document

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.