Struct light_phylogeny::ArenaTree [−][src]
Expand description
ArenaTree Structure. It describes a binary phylogenetic tree.
Inspirated from https://dev.to/deciduously/no-more-tears-no-more-knots-arena-allocated-trees-in-rust-44k6
Ben Lovy https://deciduously.com/
Fields
arena: Vec<Noeud<T>>
Implementations
Add a node with a given val and send its new index. If the node already exists, send its index.
Add a node with a given val and send its new index. If the node already exists, send a panic alert.
Get the index of a node from its val. If the node does not exists, send a panic alert.
Get the index of a node from its name. Send a Result(index, error)
Get the largest x value of a tree.
Get the largest y value of a tree.
Get the smallest x value of a tree.
Get the smallest y value of a tree.
Get the smallest l value of a tree.