Trait grove::trees::ModifiableWalker [−][src]
pub trait ModifiableWalker<D: Data>: SomeWalker<D> {
fn insert(&mut self, value: D::Value) -> Option<()>;
fn delete(&mut self) -> Option<D::Value>;
}
Expand description
This is a trait for walkers that allow inserting and deleting values.
Required methods
Inserts the value into the tree at the current empty position.
If the current position is not empty, returns None
.
May end up at any possible location, depending on the tree type.