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.
Implementations on Foreign Types§
Source§impl<Item> Push for LinkedList<Item>
Available on crate feature alloc only.
impl<Item> Push for LinkedList<Item>
Available on crate feature
alloc only.Source§impl<Item, const N: usize> Push for SmallVec<[Item; N]>
Available on crate feature smallvec only.
impl<Item, const N: usize> Push for SmallVec<[Item; N]>
Available on crate feature
smallvec only.Source§impl<Item: Eq + Hash, Seed: BuildHasher> Push for HashSet<Item, Seed>
Available on crate feature hashmap only.
impl<Item: Eq + Hash, Seed: BuildHasher> Push for HashSet<Item, Seed>
Available on crate feature
hashmap only.Source§impl<Item: Ord> Push for BinaryHeap<Item>
Available on crate feature alloc only.
impl<Item: Ord> Push for BinaryHeap<Item>
Available on crate feature
alloc only.Source§impl<Key: Eq + Hash, Value, Seed: BuildHasher> Push for HashMap<Key, Value, Seed>
Available on crate feature hashmap only.
impl<Key: Eq + Hash, Value, Seed: BuildHasher> Push for HashMap<Key, Value, Seed>
Available on crate feature
hashmap only.