Struct redox::hashmap::Entry [] [src]

pub struct Entry<K: Clone, V: Clone> {
    // some fields omitted
}

A entry in the hash map

Methods

impl<K: PartialEq<K> + Clone + Debug + Display, V: Clone> Entry<K, V>

fn new(key: K, value: V) -> Self

Create new

fn get(&self, key: &K) -> Option<&V>

Get value from entry

fn get_mut(&mut self, key: &K) -> Option<&mut V>

Get value mutable from entry

fn push(self, key: K, value: V) -> Self

Push to the list (consumes the entry returning the new one)

Trait Implementations

Derived Implementations

impl<K: Clone + Clone, V: Clone + Clone> Clone for Entry<K, V>

fn clone(&self) -> Entry<K, V>

fn clone_from(&mut self, source: &Self)