pub enum Encoding {
Listpack,
ListpackEx,
Hashtable,
}Expand description
Which representation a hash is in, which is what OBJECT ENCODING reports.
Variants§
Listpack
One packed blob of alternating fields and values, walked linearly.
ListpackEx
The same blob widened to three elements a field, the third a deadline.
Not a third band, which is the point: it is the packed band with a wider step, and a hash arrives here by being given a field deadline rather than by growing.
Hashtable
The element table, each value behind its field name.
Implementations§
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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