Struct hamt::arc::HamtSetArc
[−]
[src]
pub struct HamtSetArc<K> { // some fields omitted }
Methods
impl<K> HamtSetArc<K> where K: Hash + Eq + Clone
[src]
fn new() -> Self
Returns an empty set.
fn len(&self) -> usize
Returns how many items are in the set.
fn is_empty(&self) -> bool
Returns true if the set is empty, false otherwise.
fn insert<Q: ?Sized>(&self, k: &Q) -> Self where K: Borrow<Q>, Q: Hash + Eq + ToOwned<Owned=K>
Inserts an item into the set.
fn contains<Q: ?Sized>(&self, k: &Q) -> bool where K: Borrow<Q>, Q: Hash + Eq
Returns true if the set contains the given item, false otherwise.
fn remove<Q: ?Sized>(&self, k: &Q) -> Self where K: Borrow<Q>, Q: Hash + Eq
Removes the given item from the set.
fn iter(&self) -> Keys<K, ()>
Iterates over each item in the set in an unspecified order.
Trait Implementations
impl<K: Debug> Debug for HamtSetArc<K>
[src]
impl<K: Clone> Clone for HamtSetArc<K>
[src]
fn clone(&self) -> HamtSetArc<K>
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<K> Eq for HamtSetArc<K> where K: Eq
[src]
impl<K> PartialEq for HamtSetArc<K> where K: PartialEq
[src]
fn eq(&self, other: &HamtSetArc<K>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<K> FromIterator<K> for HamtSetArc<K> where K: Eq + Hash + Clone
[src]
fn from_iter<T>(iterator: T) -> Self where T: IntoIterator<Item=K>
Creates a value from an iterator. Read more
impl<'a, K> FromIterator<&'a K> for HamtSetArc<K> where K: Eq + Hash + Clone
[src]
fn from_iter<T>(iterator: T) -> Self where T: IntoIterator<Item=&'a K>
Creates a value from an iterator. Read more