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
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".