Struct umgap::tree::lca::LCACalculator
source · pub struct LCACalculator {
pub root: TaxonId,
pub parents: Vec<Option<TaxonId>>,
}
Expand description
Struct capable of calculating the LCA of 2 nodes in a TaxonTree.
Fields§
§root: TaxonId
The root of the taxon tree.
parents: Vec<Option<TaxonId>>
Contains the ancestor for each node. Nodes are indexed by their id.
Implementations§
Trait Implementations§
source§impl Aggregator for LCACalculator
impl Aggregator for LCACalculator
impl MultiThreadSafeAggregator for LCACalculator
Auto Trait Implementations§
impl RefUnwindSafe for LCACalculator
impl Send for LCACalculator
impl Sync for LCACalculator
impl Unpin for LCACalculator
impl UnwindSafe for LCACalculator
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