[−][src]Struct select::selection::Selection
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 select<P: Predicate>(&self, p: P) -> Selection<'a>
[src]
pub fn find<P: Predicate>(&self, p: P) -> Selection<'a>
[src]
👎 Deprecated:
renamed to select()
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 last(&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?
fn into_iter(self) -> Self::IntoIter
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,