pub struct Tree {
pub nodes: HashMap<i64, Node>,
pub children: HashMap<i64, HashSet<i64>>,
/* private fields */
}
Expand description
A taxonomy tree
Fields§
§nodes: HashMap<i64, Node>
§children: HashMap<i64, HashSet<i64>>
Implementations§
Source§impl 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 Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more