#[non_exhaustive]pub enum Variable {}Expand description
Type that indicates that the given numerical type should use variable-length encoding.
Trait Implementations§
Source§impl IntegerEncoding for Variable
IntegerEncoding and UsizeEncoding implementation which encodes integers
using zigzag variable length encoding.
impl IntegerEncoding for Variable
IntegerEncoding and UsizeEncoding implementation which encodes integers using zigzag variable length encoding.
Source§fn encode_unsigned<C, W, T>(
cx: &mut C,
writer: W,
value: T,
) -> Result<(), <C as Context>::Error>
fn encode_unsigned<C, W, T>( cx: &mut C, writer: W, value: T, ) -> Result<(), <C as Context>::Error>
Governs how unsigned integers are encoded into a Writer.
Source§fn decode_unsigned<'de, C, R, T>(
cx: &mut C,
reader: R,
) -> Result<T, <C as Context>::Error>
fn decode_unsigned<'de, C, R, T>( cx: &mut C, reader: R, ) -> Result<T, <C as Context>::Error>
Governs how unsigned integers are decoded from a Reader.
Source§impl Ord for Variable
impl Ord for Variable
Source§impl PartialOrd for Variable
impl PartialOrd for Variable
Source§impl UsizeEncoding for Variable
impl UsizeEncoding for Variable
impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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