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