pub struct Tree {
pub nodes: HashMap<i64, Node>,
pub children: HashMap<i64, HashSet<i64>>,
/* private fields */
}
Expand description
A simple tree implementation
Fields
nodes: HashMap<i64, Node>
children: HashMap<i64, HashSet<i64>>
Implementations
sourceimpl Tree
impl Tree
sourcepub fn mark_nodes(&mut self, taxids: &[i64])
pub fn mark_nodes(&mut self, taxids: &[i64])
Mark the nodes with this IDs.
sourcepub fn set_format_string(&mut self, format_string: String)
pub fn set_format_string(&mut self, format_string: String)
Set the format string for all nodes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more