pub struct Nodeset<'d> { /* private fields */ }Expand description
An unordered collection of unique nodes
Implementations§
Source§impl<'d> Nodeset<'d>
impl<'d> Nodeset<'d>
pub fn new() -> Nodeset<'d>
pub fn iter<'a>(&'a self) -> Iter<'a, 'd> ⓘ
pub fn size(&self) -> usize
Sourcepub fn document_order_first(&self) -> Option<Node<'d>>
pub fn document_order_first(&self) -> Option<Node<'d>>
Returns the node that occurs first in document order
pub fn document_order(&self) -> Vec<Node<'d>>
Trait Implementations§
Source§impl<'d> Extend<Node<'d>> for Nodeset<'d>
impl<'d> Extend<Node<'d>> for Nodeset<'d>
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Node<'d>>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Node<'d>>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'d> From<OrderedNodes<'d>> for Nodeset<'d>
impl<'d> From<OrderedNodes<'d>> for Nodeset<'d>
Source§fn from(other: OrderedNodes<'d>) -> Self
fn from(other: OrderedNodes<'d>) -> Self
Converts to this type from the input type.
Source§impl<'d> FromIterator<Node<'d>> for Nodeset<'d>
impl<'d> FromIterator<Node<'d>> for Nodeset<'d>
Source§impl<'a, 'd: 'a> IntoIterator for &'a Nodeset<'d>
impl<'a, 'd: 'a> IntoIterator for &'a Nodeset<'d>
Source§impl<'d> IntoIterator for Nodeset<'d>
impl<'d> IntoIterator for Nodeset<'d>
impl<'d> StructuralPartialEq for Nodeset<'d>
Auto Trait Implementations§
impl<'d> Freeze for Nodeset<'d>
impl<'d> !RefUnwindSafe for Nodeset<'d>
impl<'d> !Send for Nodeset<'d>
impl<'d> !Sync for Nodeset<'d>
impl<'d> Unpin for Nodeset<'d>
impl<'d> !UnwindSafe for Nodeset<'d>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more