Trait std::collections::MutableSet[src]
pub trait MutableSet<T>: Set<T> + Mutable {
fn insert<T>(&mut self, value: T) -> bool;
fn remove<T>(&mut self, value: &T) -> bool;
}This trait represents actions which can be performed on sets to mutate them.
Required Methods
fn insert<T>(&mut self, value: T) -> bool
Add a value to the set. Return true if the value was not already present in the set.
fn remove<T>(&mut self, value: &T) -> bool
Remove a value from the set. Return true if the value was present in the set.
Implementors
impl<T: Eq + Hash<S>, S, H: Hasher<S>> MutableSet<T> for HashSet<T, H>impl MutableSet<uint> for BitvSetimpl<T: Ord> MutableSet<T> for TreeSet<T>impl MutableSet<uint> for TrieSet