pub struct Hamt<K, V, A>(_)
where
    A: Annotation<KvPair<K, V>>
;

Implementations

Creates a new empty Hamt

Trait Implementations

Write the encoded value as bytes to a Sink

Return the decoded value from bytes in a Source

Returns the number of bytes needed to encode this value

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The leaf type of the Compound collection

Returns a reference to a possible child at specified offset

Returns a mutable reference to a possible child at specified offset

Construct a specific compound tree from a generic tree

Provides an iterator over all sub-annotations of the compound node

Returns a generic version of this compound tree, erasing the specific annotation and leaf types, to provide a universal tree encoding. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a 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

Encode Self into a buffer

Construct a Branch pointing to the first element, if not empty

Construct a BranchMut pointing to the first element, if not empty

Returns the argument unchanged.

Construct a Branch pointing to the element with the largest key

Construct a BranchMut pointing to the element with the largest key

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Return a reference to the key of the leaf type

Construct a Branch pointing to the nth element, if any

Construct a BranchMut pointing to the nth element, if any

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.