pub trait Clear {
// Required method
fn clear(&mut self);
}
Expand description
A type that can remove its contents and return to an empty state.
Generally, this method does not release resources, and is used to make the container available for re-insertion.