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§
Sourcefn sort(self) -> Result<Option<Missing>, EnvelopeError>
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.