#[repr(transparent)]pub struct ZigZag<T>(pub T);
Tuple Fields§
§0: T
Trait 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
fn parse_from_bytes(b: &'m [u8]) -> Result<Self, DecodeError>where
Self: Sized,
impl<T: Copy> Copy for ZigZag<T>
impl<T: Eq> Eq for ZigZag<T>
impl<T> StructuralPartialEq for ZigZag<T>
Auto Trait Implementations§
impl<T> Freeze for ZigZag<T>where
T: Freeze,
impl<T> RefUnwindSafe for ZigZag<T>where
T: RefUnwindSafe,
impl<T> Send for ZigZag<T>where
T: Send,
impl<T> Sync for ZigZag<T>where
T: Sync,
impl<T> Unpin for ZigZag<T>where
T: Unpin,
impl<T> UnwindSafe for ZigZag<T>where
T: UnwindSafe,
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