Push

Trait Push 

Source
pub trait Push<K>: Map {
    // Required method
    fn push(&mut self, value: Self::Item) -> K;
}
Expand description

Insert a value into the collection without specifying a key, returning the key that was automatically generated.

Required Methods§

Source

fn push(&mut self, value: Self::Item) -> K

Insert a value into the collection without specifying a key, returning the key that was automatically generated.

Implementations on Foreign Types§

Source§

impl<V> Push<Index> for Arena<V>

Source§

fn push(&mut self, value: V) -> Index

Source§

impl<V, C> Push<usize> for StableVecFacade<V, C>
where C: Core<V>,

Source§

fn push(&mut self, value: V) -> usize

Implementors§

Source§

impl<K: Clone, V: Clone + RTreeObject, C: Push<K, Item = V>> Push<K> for RTreed<K, V, C>