SignedVarInt

Trait SignedVarInt 

Source
pub trait SignedVarInt: Sized + Copy {
    // Required methods
    fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W);
    fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>;
}

Required Methods§

Source

fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W)

Source

fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SignedVarInt for i8

Source§

fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W)

Source§

fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>

Source§

impl SignedVarInt for i16

Source§

fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W)

Source§

fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>

Source§

impl SignedVarInt for i32

Source§

fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W)

Source§

fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>

Source§

impl SignedVarInt for i64

Source§

fn write_signed<W: Write>(s: &Signed<Self>, w: &mut W)

Source§

fn read_signed<R: Read>(reader: &mut R) -> Result<Signed<Self>, Error>

Source§

impl SignedVarInt for isize

Source§

fn write_signed<W: Write>(value: &Signed<Self>, w: &mut W)

Source§

fn read_signed<R: Read>(r: &mut R) -> Result<Signed<Self>, Error>

Implementors§