Sort

Trait Sort 

Source
pub trait Sort<Missing> {
    // Required method
    fn sort(self) -> Result<Option<Missing>, EnvelopeError>;
}
Expand description

Envelopes in a d14n-context must be sorted according to its dependencies, and by-originator. XIP, cross-originator sorting

Required Methods§

Source

fn sort(self) -> Result<Option<Missing>, EnvelopeError>

Sort envelopes in-place elements remaining in Self are guaranteed to be sorted. The sort optionally returns Missing elements. it is up to the caller to resolve any missing envelopes.

Implementors§

Source§

impl<'b, 'a: 'b, E> Sort<()> for TimestampSort<'b, E>
where E: Envelope<'a>,

Source§

impl<'b, 'a: 'b, E: Envelope<'a>> Sort<Vec<E>> for CausalSort<'b, E>