Enum DecoderLit

Source
pub enum DecoderLit {
Show 27 variants Bytes(Vec<u8>), Bool(Vec<u8>), BoolVec(Vec<u8>), Int32(Vec<u8>), Int32Vec(Vec<u8>), Int64(Vec<u8>), Int64Vec(Vec<u8>), UInt32(Vec<u8>), UInt32Vec(Vec<u8>), UInt64(Vec<u8>), UInt64Vec(Vec<u8>), Float(Vec<u8>), FloatVec(Vec<u8>), Double(Vec<u8>), DoubleVec(Vec<u8>), SInt32(Vec<u8>), SInt32Vec(Vec<u8>), SInt64(Vec<u8>), SInt64Vec(Vec<u8>), Fixed32(Vec<u8>), Fixed32Vec(Vec<u8>), Fixed64(Vec<u8>), Fixed64Vec(Vec<u8>), SFixed32(Vec<u8>), SFixed32Vec(Vec<u8>), SFixed64(Vec<u8>), SFixed64Vec(Vec<u8>),
}
Expand description

Provides decoder output format options.

This is a list of all binary formats supported by the decoder.

Note that bytes held by each key are considered “safe”. Therefore, we should only pass valid vectors as key arguments when instantiating this object. According to this fact, the ‘std::convert::From’ property is implemented instead of ‘std::convert::TryFrom’.

Variants§

§

Bytes(Vec<u8>)

Represents binary format of wire type 2.

§

Bool(Vec<u8>)

Represents bool format of wire type 0.

§

BoolVec(Vec<u8>)

Represents bool format of wire type 2 for packed repeated fields.

§

Int32(Vec<u8>)

Represents int32 format of wire type 0.

§

Int32Vec(Vec<u8>)

Represents int32 format of wire type 0 for packed repeated fields.

§

Int64(Vec<u8>)

Represents int64 format of wire type 0.

§

Int64Vec(Vec<u8>)

Represents int64 format of wire type 0 for packed repeated fields.

§

UInt32(Vec<u8>)

Represents uint32 format of wire type 0.

§

UInt32Vec(Vec<u8>)

Represents uint32 format of wire type 0 for packed repeated fields.

§

UInt64(Vec<u8>)

Represents uint64 format of wire type 0.

§

UInt64Vec(Vec<u8>)

Represents uint64 format of wire type 0 for packed repeated fields.

§

Float(Vec<u8>)

Represents float format of wire type 5.

§

FloatVec(Vec<u8>)

Represents float format of wire type 5 for packed repeated fields.

§

Double(Vec<u8>)

Represents uint32 format of wire type 1.

§

DoubleVec(Vec<u8>)

Represents double format of wire type 1 for packed repeated fields.

§

SInt32(Vec<u8>)

Represents sint32 format of wire type 0. Use it when the value is likely to be negative.

§

SInt32Vec(Vec<u8>)

Represents sint32 format of wire type 0 for packed repeated fields. Use it when the values are likely to be negative.

§

SInt64(Vec<u8>)

Represents sint64 format of wire type 0. Use it when the value is likely to be negative.

§

SInt64Vec(Vec<u8>)

Represents sint64 format of wire type 0 for packed repeated fields. Use it when the values are likely to be negative.

§

Fixed32(Vec<u8>)

Represents fixed32 format of wire type 5.

§

Fixed32Vec(Vec<u8>)

Represents fixed32 format of wire type 5 for packed repeated fields.

§

Fixed64(Vec<u8>)

Represents fixed64 format of wire type 1.

§

Fixed64Vec(Vec<u8>)

Represents fixed64 format of wire type 1 for packed repeated fields.

§

SFixed32(Vec<u8>)

Represents sfixed32 format of wire type 5.

§

SFixed32Vec(Vec<u8>)

Represents sfixed32 format of wire type 5 for packed repeated fields.

§

SFixed64(Vec<u8>)

Represents sfixed64 format of wire type 1.

§

SFixed64Vec(Vec<u8>)

Represents sfixed64 format of wire type 1 for packed repeated fields.

Trait Implementations§

Source§

impl Debug for DecoderLit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<DecoderLit> for String

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<bool>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<f32>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<f64>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<i32>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<i64>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<u32>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<u64>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for Vec<u8>

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for bool

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for f32

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for f64

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for i32

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for i64

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for u32

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.
Source§

impl From<DecoderLit> for u64

Source§

fn from(lit: DecoderLit) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.