Enum hamt::RcTrick [] [src]

pub enum RcTrick<K, V> {
    RcTrick(Rc<Hamt<K, V, RcTrick<K, V>>>),
}

Variants

Methods from Deref<Target = Hamt<K, V, RcTrick<K, V>>>

Returns a key value iterator.

Returns an iterator that visits every key in an unspecified order.

Returns an iterator that visits every value in an unspecified order.

Returns a reference to the value corresponding to the given key, or None if there is no value associated with the key.

Returns true if the map contains the given key.

Returns a new map without an entry corresponding to the given key.

Modifies the value tied to the given key with the function f. Otherwise, the map returned is identical.

Updates the value at the given key using f. If f returns None, then the entry is removed.

Updates the value at the given key using f as in Self::update. If no value exists for the given key, then f is passed None.

Trait Implementations

impl<K: Clone, V: Clone> Clone for RcTrick<K, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<K: Debug, V: Debug> Debug for RcTrick<K, V>
[src]

Formats the value using the given formatter.

impl<K: PartialEq, V: PartialEq> PartialEq for RcTrick<K, V>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<K: Eq, V: Eq> Eq for RcTrick<K, V>
[src]

impl<K, V> From<Hamt<K, V, RcTrick<K, V>>> for RcTrick<K, V>
[src]

Performs the conversion.

impl<K, V> Deref for RcTrick<K, V>
[src]

The resulting type after dereferencing

The method called to dereference a value