pub trait Memory<K>: Default {
// Required methods
fn len(&self) -> usize;
fn contains(&self, key: &K) -> bool;
fn push(&mut self, key: K);
}Expand description
A trait for data-structures in which a RandIter can store values of type K representing
the indices or other keys of the items that it has already yielded.
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.