Enum hamt::ArcTrick [] [src]

pub enum ArcTrick<K, V> {
    ArcTrick(Arc<Hamt<K, V, ArcTrick<K, V>>>),
}

Variants

Methods from Deref<Target = Hamt<K, V, ArcTrick<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 ArcTrick<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 ArcTrick<K, V>
[src]

Formats the value using the given formatter.

impl<K: PartialEq, V: PartialEq> PartialEq for ArcTrick<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 ArcTrick<K, V>
[src]

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

Performs the conversion.

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

The resulting type after dereferencing

The method called to dereference a value