Struct ic_certified_map::RbTree[][src]

pub struct RbTree<K: 'static + AsRef<[u8]>, V: AsHashTree + 'static> { /* fields omitted */ }
Expand description

Implements mutable Leaf-leaning red-black trees as defined in https://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf

Implementations

Updates the value corresponding to the specified key.

Constructs a hash tree that acts as a proof that there is a entry with the specified key in this map. The proof also contains the value in question.

If the key is not in the map, returns a proof of absence.

Like witness, but gives the caller more control over the construction of the value witness. This method is useful for constructing witnesses for nested certified maps.

Returns a witness enumerating all the keys in this map. The resulting tree doesn’t include values, they are replaced with “Pruned” nodes.

Returns a witness for the keys in the specified range. The resulting tree doesn’t include values, they are replaced with “Pruned” nodes.

Returns a witness for the key-value pairs in the specified range. The resulting tree contains both keys and values.

Returns a witness that enumerates all the keys starting with the specified prefix.

Enumerates all the key-value pairs in the tree.

Inserts a key-value entry into the map.

Removes the specified key from the map.

Trait Implementations

Returns the root hash of the tree without constructing it. Must be equivalent to as_hash_tree().reconstruct(). Read more

Constructs a hash tree corresponding to the data.

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.