[][src]Struct select::selection::Selection

pub struct Selection<'a> { /* fields omitted */ }

Implementations

impl<'a> Selection<'a>[src]

pub fn new(document: &'a Document, bit_set: BitSet) -> Selection<'a>[src]

pub fn iter<'sel>(&'sel self) -> Iter<'sel, 'a>[src]

pub fn filter<P: Predicate>(&self, p: P) -> Selection<'a>[src]

pub fn find<P: Predicate>(&self, p: P) -> Selection<'a>[src]

pub fn parent(&self) -> Selection<'a>[src]

pub fn prev(&self) -> Selection<'a>[src]

pub fn next(&self) -> Selection<'a>[src]

pub fn parents(&self) -> Selection<'a>[src]

pub fn children(&self) -> Selection<'a>[src]

pub fn first(&self) -> Option<Node<'a>>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for Selection<'a>[src]

impl<'a> Debug for Selection<'a>[src]

impl<'sel, 'doc> IntoIterator for &'sel Selection<'doc>[src]

type Item = Node<'doc>

The type of the elements being iterated over.

type IntoIter = Iter<'sel, 'doc>

Which kind of iterator are we turning this into?

impl<'a> PartialEq<Selection<'a>> for Selection<'a>[src]

impl<'a> StructuralPartialEq for Selection<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Selection<'a>

impl<'a> !Send for Selection<'a>

impl<'a> !Sync for Selection<'a>

impl<'a> Unpin for Selection<'a>

impl<'a> !UnwindSafe for Selection<'a>

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.