enum TupleFieldLen {
Const(u64),
LenSub,
}Expand description
Length kind of a decoder’s returned tuple length field.
Variants§
Const(u64)
A constant byte length (e.g. Some((code, 2))).
LenSub
slice.len() - x for a non-negative x (e.g. decode_last_char’s
n - lead_idx), so len <= slice.len().
Auto Trait Implementations§
impl DynSend for TupleFieldLen
impl DynSync for TupleFieldLen
impl Freeze for TupleFieldLen
impl RefUnwindSafe for TupleFieldLen
impl Send for TupleFieldLen
impl Sync for TupleFieldLen
impl Unpin for TupleFieldLen
impl UnsafeUnpin for TupleFieldLen
impl UnwindSafe for TupleFieldLen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more