pub trait PersistentNode: Node {
    fn left_child(&self) -> usize;
fn right_child(&self) -> usize;
fn set_children(&mut self, left: usize, right: usize); }
Expand description

Required trait by nodes of persistent segment trees.

Required methods

Gives index of left child.

Gives index of right child.

Sets saved index of both left and right children.

Implementors

This is a pretty generic implementation of PersistentNode for a struct.

This is a pretty generic implementation of PersistentNode for a struct.