pub trait CollectionMut: Collection {
// Required method
fn clear(&mut self);
}Expand description
A trait for collections of items.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<K, V> CollectionMut for HashMap<K, V>
Available on crate feature std only.
impl<K, V> CollectionMut for HashMap<K, V>
Available on crate feature
std only.Source§impl<T> CollectionMut for BinaryHeap<T>where
T: Ord,
impl<T> CollectionMut for BinaryHeap<T>where
T: Ord,
Source§impl<T> CollectionMut for HashSet<T>
Available on crate feature std only.
impl<T> CollectionMut for HashSet<T>
Available on crate feature
std only.