Trait otopr::prelude::VarInt [−][src]
pub trait VarInt: Sealed + Copy + Shl<usize, Output = Self> + From<u8> + BitOr<Output = Self> + 'static {
fn write(self, buf: &mut impl BufMut);
fn read<B: Buf>(buf: &mut Deserializer<'_, B>) -> Result<Self>;
fn read_field_tag<B: Buf>(
buf: &mut Deserializer<'_, B>
) -> Result<Self, Result<WireTypes>>;
fn size(self) -> usize;
}
Expand description
A VarInt type.