Enum sos_sdk::commit::Comparison  
source · pub enum Comparison {
    Equal,
    Contains(Vec<usize>, Vec<[u8; 32]>),
    Unknown,
}Expand description
The result of comparing two commit trees.
Either the trees are equal, the other tree is a subset of this tree or the trees completely diverge.
Variants§
Equal
Trees are equal as their root commits match.
Contains(Vec<usize>, Vec<[u8; 32]>)
Tree contains the other proof.
Unknown
Unable to find a match against the proof.
Trait Implementations§
source§impl Debug for Comparison
 
impl Debug for Comparison
source§impl PartialEq for Comparison
 
impl PartialEq for Comparison
source§fn eq(&self, other: &Comparison) -> bool
 
fn eq(&self, other: &Comparison) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for Comparison
impl StructuralEq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
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