pub enum WireType {
Varint,
I64,
Len,
I32,
}Expand description
Protobuf wire types (the low 3 bits of a field tag).
Variants§
Varint
Base-128 varint (int32/64, uint32/64, sint*, bool, enum).
I64
Fixed 8-byte little-endian (fixed64, sfixed64, double).
Len
Length-delimited: a varint length then that many bytes (string,
bytes, embedded messages, packed repeated).
I32
Fixed 4-byte little-endian (fixed32, sfixed32, float).
Implementations§
Trait Implementations§
impl Copy for WireType
impl Eq for WireType
impl StructuralPartialEq for WireType
Auto Trait Implementations§
impl Freeze for WireType
impl RefUnwindSafe for WireType
impl Send for WireType
impl Sync for WireType
impl Unpin for WireType
impl UnsafeUnpin for WireType
impl UnwindSafe for WireType
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