[][src]Enum picopb::WireType

#[repr(u8)]pub enum WireType {
    Varint,
    Bit64,
    Bytes,
    Bit32,
}

A wire type that provides just enough information to find the length of the following value.

Variants

Varint

int32, int64, uint32, uint64, sint32, sint64, bool, enum

Bit64

fixed64, sfixed64, double

Bytes

string, bytes, embedded messages, packed repeated fields

Bit32

fixed32, sfixed32, float

Implementations

impl WireType[src]

pub fn from_u8(b: u8) -> Option<Self>[src]

Trait Implementations

impl Clone for WireType[src]

impl Copy for WireType[src]

impl Debug for WireType[src]

impl Eq for WireType[src]

impl PartialEq<WireType> for WireType[src]

impl StructuralEq for WireType[src]

impl StructuralPartialEq for WireType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.