Enum protobuf::wire_format::WireType
source · pub enum WireType {
WireTypeVarint = 0,
WireTypeFixed64 = 1,
WireTypeLengthDelimited = 2,
WireTypeStartGroup = 3,
WireTypeEndGroup = 4,
WireTypeFixed32 = 5,
}
Expand description
One of six defined protobuf wire types
Variants§
WireTypeVarint = 0
Varint (e. g. int32
or sint64
)
WireTypeFixed64 = 1
Fixed size 64 bit (e. g. fixed64
or double
)
WireTypeLengthDelimited = 2
Length-delimited (e. g. message
or string
)
WireTypeStartGroup = 3
Groups are not supported by rust-protobuf
WireTypeEndGroup = 4
Groups are not supported by rust-protobuf
WireTypeFixed32 = 5
Fixed size 64 bit (e. g. fixed32
or float
)
Implementations§
Trait Implementations§
source§impl PartialEq for WireType
impl PartialEq for WireType
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 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)