Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

SignedVarInt

Trait SignedVarInt 

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

Required Methods§

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

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

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§

§

impl SignedVarInt for i8

§

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

§

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

§

impl SignedVarInt for i16

§

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

§

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

§

impl SignedVarInt for i32

§

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

§

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

§

impl SignedVarInt for i64

§

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

§

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

§

impl SignedVarInt for isize

§

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

§

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

Implementors§