pub enum Lengths {
U16(Vec<u16>),
U32(Vec<u32>),
U64(Vec<u64>),
}Expand description
Compact positive lengths, stored as length - 1.
The width is selected from the configured maximum, not the object length.
Public variants allow external persistence without enabling serde.
Variants§
U16(Vec<u16>)
Lengths up to and including 65,536 bytes.
U32(Vec<u32>)
Lengths up to and including 4,294,967,296 bytes.
U64(Vec<u64>)
Larger lengths. An encoded u64::MAX is invalid.
Implementations§
Trait Implementations§
impl Eq for Lengths
impl StructuralPartialEq for Lengths
Auto Trait Implementations§
impl Freeze for Lengths
impl RefUnwindSafe for Lengths
impl Send for Lengths
impl Sync for Lengths
impl Unpin for Lengths
impl UnsafeUnpin for Lengths
impl UnwindSafe for Lengths
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