Trait Sigint

Source
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

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 Sigint for i32

Source§

type Varint = u32

Source§

fn encode(self) -> Self::Varint

Source§

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

Source§

impl Sigint for i64

Source§

type Varint = u64

Source§

fn encode(self) -> Self::Varint

Source§

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

Implementors§