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.
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.
HashSet<T>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).