pub trait IKeyExprTreeExtMut<'a, Weight>: IKeyExprTreeMut<'a, Weight> {
    // Provided methods
    fn weight_at_mut(&'a mut self, key: &keyexpr) -> Option<&'a mut Weight> { ... }
    fn insert(&mut self, key: &keyexpr, weight: Weight) -> Option<Weight> { ... }
    fn prune(&mut self) { ... }
}
Expand description

Extension methods for mutable KeTrees.

Provided Methods§

source

fn weight_at_mut(&'a mut self, key: &keyexpr) -> Option<&'a mut Weight>

Returns a mutable reference to the weight of the node at key.

source

fn insert(&mut self, key: &keyexpr, weight: Weight) -> Option<Weight>

Inserts a weight at key, returning the previous weight if it existed.

source

fn prune(&mut self)

Prunes empty nodes from the tree, unless they have at least one non-empty descendent.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, Weight, T: IKeyExprTreeMut<'a, Weight>> IKeyExprTreeExtMut<'a, Weight> for T