pub struct BranchMut<'a, C, A, I>(_);
Expand description

Reprents a branch view into a collection.

BranchMut allows you to manipulate the value of the leaf, but disallows manipulating the branch nodes directly, to avoid breaking any datastructure invariants.

Branches are always guaranteed to point at a leaf, and can be dereferenced to the pointed-at leaf.

Implementations

Returns the depth of the branch

Returns a branch that maps the leaf to a specific value. Used in maps for example, to get easy access to the value of the KV-pair

Returns a mutable reference to the leaf pointet to by the branch

Performs a tree walk, returning either a valid branch or None if the walk failed.

Trait Implementations

Formats the value using the given formatter. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Returns the argument unchanged.

Calls U::from(self).

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

Gets the layout of the type.

The type for metadata in pointers and references to 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.