Trait probables::tree::Node[][src]

pub trait Node {
    fn leaf(&mut self, node: PrimaryNode, branch: Branch) -> Vec<PrimaryNode>;
fn extend_left_branch(
        &mut self,
        node: PrimaryNode,
        branch: Branch,
        iter: u8
    ) -> Vec<PrimaryNode>;
fn extend_right_branch(
        &mut self,
        node: PrimaryNode,
        branch: Branch,
        iter: u8
    ) -> Vec<PrimaryNode>;
fn count(&mut self, branch: Branch, iter: u8, max: u8) -> usize; }
Expand description

Traits provide wrapper functions which are nesscary for the implementation

Required methods

Leaf function create new leaves on the branch

Extend branch on left side of the tree

Extend branch on right side of the tree

Count the number of branches on the tree

Implementors

Implentation methods are implemented when a user import my crate