protozer0

Trait Svarint

Source
pub trait Svarint: Varint {
    // Required methods
    fn from_svarint(buf: &mut &[u8]) -> Result<Self>;
    fn append_svarint(self, buf: &mut Vec<u8>);
}

Required Methods§

Source

fn from_svarint(buf: &mut &[u8]) -> Result<Self>

Source

fn append_svarint(self, buf: &mut Vec<u8>)

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 Svarint for i8

Source§

fn from_svarint(buf: &mut &[u8]) -> Result<Self>

Source§

fn append_svarint(self, buf: &mut Vec<u8>)

Source§

impl Svarint for i16

Source§

fn from_svarint(buf: &mut &[u8]) -> Result<Self>

Source§

fn append_svarint(self, buf: &mut Vec<u8>)

Source§

impl Svarint for i32

Source§

fn from_svarint(buf: &mut &[u8]) -> Result<Self>

Source§

fn append_svarint(self, buf: &mut Vec<u8>)

Source§

impl Svarint for i64

Source§

fn from_svarint(buf: &mut &[u8]) -> Result<Self>

Source§

fn append_svarint(self, buf: &mut Vec<u8>)

Implementors§