pub trait Push<T> {
// Required method
fn push(&mut self, element: T);
}Expand description
Abstraction for pushing elements of type T onto a collection.
pub trait Push<T> {
// Required method
fn push(&mut self, element: T);
}Abstraction for pushing elements of type T onto a collection.