Struct sxd_xpath::nodeset::Nodeset
[−]
[src]
pub struct Nodeset<'d> { /* fields omitted */ }
An unordered collection of unique nodes
Methods
impl<'d> Nodeset<'d>
[src]
fn new() -> Nodeset<'d>
fn contains<N>(&self, node: N) -> bool where
N: Into<Node<'d>>,
N: Into<Node<'d>>,
Checks if the node is present in the set
fn add<N>(&mut self, node: N) where
N: Into<Node<'d>>,
N: Into<Node<'d>>,
Add the given node to the set
fn iter<'a>(&'a self) -> Iter<'a, 'd>
fn size(&self) -> usize
fn document_order_first(&self) -> Option<Node<'d>>
Returns the node that occurs first in document order
fn document_order(&self) -> Vec<Node<'d>>
Trait Implementations
impl<'d> Debug for Nodeset<'d>
[src]
impl<'d> Default for Nodeset<'d>
[src]
impl<'d> Clone for Nodeset<'d>
[src]
fn clone(&self) -> Nodeset<'d>
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
impl<'d> PartialEq for Nodeset<'d>
[src]
fn eq(&self, __arg_0: &Nodeset<'d>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Nodeset<'d>) -> bool
This method tests for !=
.
impl<'d> Extend<Node<'d>> for Nodeset<'d>
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Node<'d>>,
I: IntoIterator<Item = Node<'d>>,
Extends a collection with the contents of an iterator. Read more
impl<'a, 'd: 'a> IntoIterator for &'a Nodeset<'d>
[src]
type Item = Node<'d>
The type of the elements being iterated over.
type IntoIter = Iter<'a, 'd>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Iter<'a, 'd>
Creates an iterator from a value. Read more
impl<'d> IntoIterator for Nodeset<'d>
[src]
type Item = Node<'d>
The type of the elements being iterated over.
type IntoIter = IntoIter<'d>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IntoIter<'d>
Creates an iterator from a value. Read more
impl<'d> From<OrderedNodes<'d>> for Nodeset<'d>
[src]
fn from(other: OrderedNodes<'d>) -> Self
Performs the conversion.
impl<'d> FromIterator<Node<'d>> for Nodeset<'d>
[src]
fn from_iter<I>(iterator: I) -> Nodeset<'d> where
I: IntoIterator<Item = Node<'d>>,
I: IntoIterator<Item = Node<'d>>,
Creates a value from an iterator. Read more