pub struct MultiTree<'a, K>where
K: Hash + Eq + PartialEq + Copy,{ /* private fields */ }Expand description
Multi tree allows comparison between multiple trees each represented by a unique identifier.
The identifier for each tree would be the vault identifier (UUID).
Implementations§
source§impl<'a, K> MultiTree<'a, K>where
K: Hash + Eq + PartialEq + Copy,
impl<'a, K> MultiTree<'a, K>where K: Hash + Eq + PartialEq + Copy,
sourcepub fn insert(&mut self, key: K, tree: &'a CommitTree)
pub fn insert(&mut self, key: K, tree: &'a CommitTree)
Insert a tree reference into this multi tree.
sourcepub fn contains(
&'a self,
other: &HashMap<&'a K, CommitProof>
) -> Result<HashMap<&'a K, Option<CommitProof>>>
pub fn contains( &'a self, other: &HashMap<&'a K, CommitProof> ) -> Result<HashMap<&'a K, Option<CommitProof>>>
Determine if each of the other proofs is contained in each of the trees in this multi tree.
sourcepub fn relationship(
&'a self,
proofs: &HashMap<&'a K, CommitProof>,
matches: &HashMap<&'a K, Option<CommitProof>>
) -> Result<HashMap<&'a K, CommitRelationship>>
pub fn relationship( &'a self, proofs: &HashMap<&'a K, CommitProof>, matches: &HashMap<&'a K, Option<CommitProof>> ) -> Result<HashMap<&'a K, CommitRelationship>>
Get the relationship between two multi trees.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K> RefUnwindSafe for MultiTree<'a, K>where K: RefUnwindSafe,
impl<'a, K> Send for MultiTree<'a, K>where K: Send,
impl<'a, K> Sync for MultiTree<'a, K>where K: Sync,
impl<'a, K> Unpin for MultiTree<'a, K>where K: Unpin,
impl<'a, K> UnwindSafe for MultiTree<'a, K>where K: UnwindSafe,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.