#[repr(u8)]pub enum WireType {
Varint = 0,
I64 = 1,
Len = 2,
I32 = 5,
}
Expand description
https://protobuf.dev/programming-guides/encoding/
Variants§
Varint = 0
i32, i64, u32, u64, sint64, sint32, sing64, bool, enum
I64 = 1
fixed64, sfixed64, double
Len = 2
Len-determined (string, bytes, embedded messages, packed repeated fields)
I32 = 5
32-bit fixed (fixed32, sfixed32, float)
Trait Implementations§
Source§impl TryFromPrimitive for WireType
impl TryFromPrimitive for WireType
impl Copy 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 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