pub trait Sigint: Default + Clone + Copy {
    type Varint: Varint;

    // Required methods
    fn encode(self) -> Self::Varint;
    fn decode(from: Self::Varint) -> Self;
}

Required Associated Types§

Required Methods§

source

fn encode(self) -> Self::Varint

source

fn decode(from: Self::Varint) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Sigint for i32

§

type Varint = u32

source§

fn encode(self) -> Self::Varint

source§

fn decode(from: Self::Varint) -> Self

source§

impl Sigint for i64

§

type Varint = u64

source§

fn encode(self) -> Self::Varint

source§

fn decode(from: Self::Varint) -> Self

Implementors§