Struct probables::tree::PrimaryNode [−][src]
pub struct PrimaryNode {
pub data: Vec<String>,
pub left: Vec<PrimaryNode>,
pub right: Vec<PrimaryNode>,
}Expand description
Tree attributes
Fields
data: Vec<String>Data attribute: this branch hold some leaves. Each leave have own information
left: Vec<PrimaryNode>Left attribute: this branch have connection with other branch of tree but which are only on left side
right: Vec<PrimaryNode>Right attribute: this branch have connection with other branch of tree but which are only on right side
Trait Implementations
Implentation methods are implemented when a user import my crate
fn extend_left_branch(
&mut self,
node: PrimaryNode,
branch: Branch,
iter: u8
) -> Vec<PrimaryNode>
fn extend_left_branch(
&mut self,
node: PrimaryNode,
branch: Branch,
iter: u8
) -> Vec<PrimaryNode>
create a new branch with new leaf
Leaf function create new leaves on the branch
fn extend_right_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>
Extend branch on right side of the tree
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PrimaryNode
impl Send for PrimaryNode
impl Sync for PrimaryNode
impl Unpin for PrimaryNode
impl UnwindSafe for PrimaryNode
Blanket Implementations
Mutably borrows from an owned value. Read more