pub trait TryPush {
type Item;
type Error;
type ItemView<'a>
where Self: 'a;
// Required method
fn try_push<'a>(
&'a mut self,
item: Self::Item,
) -> Result<Self::ItemView<'a>, Self::Error>;
}
Expand description
Abstracts something you can try push item into &mut 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.