#[non_exhaustive]pub enum Size {
U8,
U16,
U32,
U32_7Bit,
}Expand description
Size encoding for length-prefixed StringDeku and VecDeku
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.
U8
1 byte to encode length.
U16
2 bytes to encode length.
U32
4 bytes to encode length.
U32_7Bit
7bit encoded u32 to encode length (.Net style).
See crate::SevenBitU32 for details.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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