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

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

Methods

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

fn new(document: &'a Document, bitset: BitSet) -> Selection<'a>

fn iter(&'a self) -> Iter<'a>

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

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

fn parent(&self) -> Selection<'a>

fn prev(&self) -> Selection<'a>

fn next(&self) -> Selection<'a>

fn parents(&self) -> Selection<'a>

fn children(&self) -> Selection<'a>

fn first(&self) -> Option<Node<'a>>

Trait Implementations

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

fn eq(&self, __arg_0: &Selection<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Selection<'a>) -> bool

This method tests for !=.

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn clone(&self) -> Selection<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more