pub enum Typ {
Varint = 0,
Bit64 = 1,
LengthDelimited = 2,
Bit32 = 5,
Unknown = -1,
}
Expand description
Provides available wire types supported by proto3.
Variants§
Varint = 0
Represents the wire type 0
which allows for encoding of data formats
int32
, int64
, uint32
, uint64
, sint32
, sint64
and bool
.
Bit64 = 1
Represents the wire type 1
which allows for encoding of data formats
fixed64
, sfixed64
and double
.
LengthDelimited = 2
Represents the wire type 2
which allows for encoding of data formats
string
, bytes
, embedded messages
and packed repeated fields
.
Bit32 = 5
Represents the wire type 5
which allows for encoding of data formats
fixed32
, sfixed32
and float
.
Unknown = -1
Represents un unknown wire type.
Trait Implementations§
impl Copy for Typ
impl StructuralPartialEq for Typ
Auto Trait Implementations§
impl Freeze for Typ
impl RefUnwindSafe for Typ
impl Send for Typ
impl Sync for Typ
impl Unpin for Typ
impl UnwindSafe for Typ
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