Enum sos_sdk::commit::Comparison  
source · pub enum Comparison {
    Equal,
    Contains(Vec<usize>),
    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>)
Tree contains the other proof and returns the indices that matched.
Unknown
Unable to find a match against the proof.
Trait Implementations§
source§impl Clone for Comparison
 
impl Clone for Comparison
source§fn clone(&self) -> Comparison
 
fn clone(&self) -> Comparison
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for Comparison
 
impl Debug for Comparison
source§impl Decodable for Comparison
 
impl Decodable for Comparison
source§impl Default for Comparison
 
impl Default for Comparison
source§fn default() -> Comparison
 
fn default() -> Comparison
Returns the “default value” for a type. Read more
source§impl Encodable for Comparison
 
impl Encodable for Comparison
source§fn encode<'life0, 'life1, 'async_trait, W>(
    &'life0 self,
    writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
 
fn encode<'life0, 'life1, 'async_trait, W>(
    &'life0 self,
    writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Encode self into the binary writer.
source§impl PartialEq for Comparison
 
impl PartialEq for Comparison
impl Eq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.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>
source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more