enum WireShape {
Map,
Array,
}Expand description
Wire shape of a product value under Format::MsgpackTagged. Picked per
struct at decode time by peeking the next msgpack marker — the
Serializer choice of EncodingStrategy is not communicated through a
separate channel (and doesn’t need to be: the shape is self-describing
at the msgpack-header level).
Variants§
Map
fixmap / map16 / map32 — Tagged: int-keyed map.
Array
fixarray / array16 / array32 — Array: positional.
Trait Implementations§
impl Copy for WireShape
impl Eq for WireShape
impl StructuralPartialEq for WireShape
Auto Trait Implementations§
impl Freeze for WireShape
impl RefUnwindSafe for WireShape
impl Send for WireShape
impl Sync for WireShape
impl Unpin for WireShape
impl UnwindSafe for WireShape
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