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.
pub trait Push<K>: Map {
// Required method
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.