[][src]Trait broccoli::analyze::Splitter

pub trait Splitter: Sized {
    pub fn div(&mut self) -> (Self, Self);
pub fn add(&mut self, a: Self, b: Self); }

A trait that gives the user callbacks at events in a recursive algorithm on the tree. The main motivation behind this trait was to track the time spent taken at each level of the tree during construction.

Required methods

pub fn div(&mut self) -> (Self, Self)[src]

Called to split this into two to be passed to the children.

pub fn add(&mut self, a: Self, b: Self)[src]

Called to add the results of the recursive calls on the children.

Loading content...

Implementors

Loading content...