#[non_exhaustive]pub enum MapOrdering {
Received,
LengthFirst,
Bytewise,
}Expand description
Optional ordering constraint on complete received key encodings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Received
Preserve any received order; semantic key uniqueness is still checked.
LengthFirst
Compare encoded length first, then encoded bytes.
Bytewise
Compare complete key encodings lexicographically.
Trait Implementations§
Source§impl Clone for MapOrdering
impl Clone for MapOrdering
Source§fn clone(&self) -> MapOrdering
fn clone(&self) -> MapOrdering
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MapOrdering
Source§impl Debug for MapOrdering
impl Debug for MapOrdering
impl Eq for MapOrdering
Source§impl PartialEq for MapOrdering
impl PartialEq for MapOrdering
impl StructuralPartialEq for MapOrdering
Auto Trait Implementations§
impl Forget for MapOrdering
impl Freeze for MapOrdering
impl Move for MapOrdering
impl RefUnwindSafe for MapOrdering
impl Send for MapOrdering
impl Sync for MapOrdering
impl Unpin for MapOrdering
impl UnsafeUnpin for MapOrdering
impl UnwindSafe for MapOrdering
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