pub enum MapOrder {
Structural,
Custom(Ref<Closure>),
}Expand description
How a map orders its keys.
Custom carries a program-supplied comparator in OCaml’s protocol
(design §3.6): a closure taking [k1, k2] and returning an I64
that is negative, zero, or positive. Structural is the derived
total order (ops::compare) — the order used at the JSON boundary,
where a decoded map has no program closure to carry.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapOrder
impl !RefUnwindSafe for MapOrder
impl !Send for MapOrder
impl !Sync for MapOrder
impl Unpin for MapOrder
impl UnsafeUnpin for MapOrder
impl !UnwindSafe for MapOrder
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