pub trait Push {
type Item;
type ItemView<'a>
where Self: 'a;
// Required method
fn push<'a>(&'a mut self, item: Self::Item) -> Self::ItemView<'a>;
}Expand description
Abstracts something which can push Item into self
Required Associated Types§
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.