Enum coset::CborOrdering
source · pub enum CborOrdering {
Lexicographic,
LengthFirstLexicographic,
}
Expand description
Indicate which ordering should be applied to CBOR values.
Variants§
Lexicographic
Order values lexicographically, as per RFC 8949 section 4.2.1 (Core Deterministic Encoding Requirements)
LengthFirstLexicographic
Order values by encoded length, then by lexicographic ordering of encoded form, as per RFC 7049 section 3.9 (Canonical CBOR) / RFC 8949 section 4.2.3 (Length-First Map Key Ordering).
Auto Trait Implementations§
impl Freeze for CborOrdering
impl RefUnwindSafe for CborOrdering
impl Send for CborOrdering
impl Sync for CborOrdering
impl Unpin for CborOrdering
impl UnwindSafe for CborOrdering
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