pub trait IsPushable<T> {
// Required methods
fn push(&mut self, x: T);
fn reserve(&mut self, n: usize);
}
Expand description
IsPushable trait used for collections of elements which can be pushed / appended to
pub trait IsPushable<T> {
// Required methods
fn push(&mut self, x: T);
fn reserve(&mut self, n: usize);
}
IsPushable trait used for collections of elements which can be pushed / appended to