pub trait ReusableElement {
// Required methods
fn reset(&mut self);
fn new() -> Self;
}Expand description
Implemented on element types to provide a unified interface for creating a new element and reinitializing an existing element
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<A: Array> ReusableElement for SmallVec<A>
Available on crate feature smallvec only.
impl<A: Array> ReusableElement for SmallVec<A>
Available on crate feature
smallvec only.Source§impl<K, V> ReusableElement for BTreeMap<K, V>
impl<K, V> ReusableElement for BTreeMap<K, V>
Source§impl<K, V> ReusableElement for HashMap<K, V>
Available on crate feature std only.
impl<K, V> ReusableElement for HashMap<K, V>
Available on crate feature
std only.Source§impl<T> ReusableElement for LinkedList<T>
impl<T> ReusableElement for LinkedList<T>
Source§impl<T> ReusableElement for HashSet<T>
Available on crate feature std only.
impl<T> ReusableElement for HashSet<T>
Available on crate feature
std only.