pub enum LengthPrefixKind {
Bytes,
Elements,
}
Expand description
Specifies what kind of data the length prefix captures.
Variants§
Bytes
The length prefix stores the total number of bytes making up another field.
Elements
The length prefix stores the total number of elements inside another field.
Trait Implementations§
Source§impl Clone for LengthPrefixKind
impl Clone for LengthPrefixKind
Source§fn clone(&self) -> LengthPrefixKind
fn clone(&self) -> LengthPrefixKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LengthPrefixKind
impl Debug for LengthPrefixKind
Source§impl Ord for LengthPrefixKind
impl Ord for LengthPrefixKind
Source§fn cmp(&self, other: &LengthPrefixKind) -> Ordering
fn cmp(&self, other: &LengthPrefixKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LengthPrefixKind
impl PartialEq for LengthPrefixKind
Source§impl PartialOrd for LengthPrefixKind
impl PartialOrd for LengthPrefixKind
impl Copy for LengthPrefixKind
impl Eq for LengthPrefixKind
impl StructuralPartialEq for LengthPrefixKind
Auto Trait Implementations§
impl Freeze for LengthPrefixKind
impl RefUnwindSafe for LengthPrefixKind
impl Send for LengthPrefixKind
impl Sync for LengthPrefixKind
impl Unpin for LengthPrefixKind
impl UnwindSafe for LengthPrefixKind
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