pub struct Branch<'a, C, A>(_);
Expand description
Reprents an immutable branch view into a collection.
Branche are always guaranteed to point at a leaf, and can be dereferenced
to the pointed-at leaf.
Returns the depth of the branch
Returns a slice into the levels of the tree.
pub fn map_leaf<M>(
self,
closure: for<'b> fn(_: &'b C::Leaf) -> &'b M
) -> MappedBranch<'a, C, A, M>
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
Performs a tree walk, returning either a valid branch or None if the
walk failed.
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
The type of the elements being iterated over.
type IntoIter = BranchIterator<'a, C, A, AllLeaves>
Which kind of iterator are we turning this into?
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.