Struct skyscraper::xpath::xpath_item_set::XpathItemSet
source · pub struct XpathItemSet<'tree> { /* private fields */ }
Expand description
An ordered set of XpathItem
s.
Implementations§
source§impl<'tree> XpathItemSet<'tree>
impl<'tree> XpathItemSet<'tree>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty XpathItemSet
.
sourcepub fn insertb(&mut self, item: XpathItem<'tree>) -> bool
pub fn insertb(&mut self, item: XpathItem<'tree>) -> bool
Inserts a new item into the set.
Returns true if the item was inserted, false if it was already present.
sourcepub fn insert(&mut self, item: XpathItem<'tree>)
pub fn insert(&mut self, item: XpathItem<'tree>)
Inserts a new item into the set.
Drops the bool returned by XpathItemSet::insertb
so that it can be used in match arms
without causing incompatible types with XpathItemSet::extend
.
Trait Implementations§
source§impl<'tree> Debug for XpathItemSet<'tree>
impl<'tree> Debug for XpathItemSet<'tree>
source§impl Display for XpathItemSet<'_>
impl Display for XpathItemSet<'_>
source§impl<'tree> Extend<XpathItem<'tree>> for XpathItemSet<'tree>
impl<'tree> Extend<XpathItem<'tree>> for XpathItemSet<'tree>
source§fn extend<T: IntoIterator<Item = XpathItem<'tree>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = XpathItem<'tree>>>(&mut self, iter: T)
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<'tree> FromIterator<XpathItem<'tree>> for XpathItemSet<'tree>
impl<'tree> FromIterator<XpathItem<'tree>> for XpathItemSet<'tree>
source§impl<'tree> Index<usize> for XpathItemSet<'tree>
impl<'tree> Index<usize> for XpathItemSet<'tree>
source§impl<'a, 'tree> IntoIterator for &'a XpathItemSet<'tree>
impl<'a, 'tree> IntoIterator for &'a XpathItemSet<'tree>
source§impl<'tree> IntoIterator for XpathItemSet<'tree>
impl<'tree> IntoIterator for XpathItemSet<'tree>
source§impl PartialEq for XpathItemSet<'_>
impl PartialEq for XpathItemSet<'_>
source§impl PartialOrd for XpathItemSet<'_>
impl PartialOrd for XpathItemSet<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl<'tree> Freeze for XpathItemSet<'tree>
impl<'tree> RefUnwindSafe for XpathItemSet<'tree>
impl<'tree> Send for XpathItemSet<'tree>
impl<'tree> Sync for XpathItemSet<'tree>
impl<'tree> Unpin for XpathItemSet<'tree>
impl<'tree> UnwindSafe for XpathItemSet<'tree>
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