Trait push_trait::Push
[−]
[src]
pub trait Push<T> { type PushedOut; fn push(&mut self, val: T) -> Option<Self::PushedOut>; }
A mutable collection onto which items can be added to an arbitrary location in the collection.
Associated Types
type PushedOut
Type of value that gets pushed out, if any.
For some collections, a value may be "pushed out" after a value is pushed.
Required Methods
Implementors
impl<K: Ord, V> Push<(K, V)> for BTreeMap<K, V>
impl<T: Ord> Push<T> for BTreeSet<T>
impl<T: Ord> Push<T> for BinaryHeap<T>
impl<K: Hash + Eq, V> Push<(K, V)> for HashMap<K, V>
impl<T: Hash + Eq> Push<T> for HashSet<T>
impl<T> Push<T> for LinkedList<T>
impl<T> Push<LinkedList<T>> for LinkedList<T>
impl Push<char> for String
impl<T> Push<T> for Vec<T>
impl<T> Push<T> for VecDeque<T>