Struct fire_protobuf::decode::ZigZag
source · #[repr(transparent)]pub struct ZigZag<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
source§impl<'m> DecodeMessage<'m> for ZigZag<i32>
impl<'m> DecodeMessage<'m> for ZigZag<i32>
source§const WIRE_TYPE: WireType = WireType::Varint
const WIRE_TYPE: WireType = WireType::Varint
This field is just a hint, merge might accept another type Read more
fn decode_default() -> Self
source§fn merge(
&mut self,
kind: FieldKind<'m>,
_is_field: bool
) -> Result<(), DecodeError>
fn merge(
&mut self,
kind: FieldKind<'m>,
_is_field: bool
) -> Result<(), DecodeError>
kind does not need to be the same as Self::WIRE_TYPE Read more
fn parse_from_bytes(b: &'m [u8]) -> Result<Self, DecodeError>where
Self: Sized,
source§impl<'m> DecodeMessage<'m> for ZigZag<i64>
impl<'m> DecodeMessage<'m> for ZigZag<i64>
source§const WIRE_TYPE: WireType = WireType::Varint
const WIRE_TYPE: WireType = WireType::Varint
This field is just a hint, merge might accept another type Read more
fn decode_default() -> Self
source§fn merge(
&mut self,
kind: FieldKind<'m>,
_is_field: bool
) -> Result<(), DecodeError>
fn merge(
&mut self,
kind: FieldKind<'m>,
_is_field: bool
) -> Result<(), DecodeError>
kind does not need to be the same as Self::WIRE_TYPE Read more