pub trait Varint: Default + Debug + Clone + Copy {
    // Required methods
    fn from_u64(v: u64) -> Self;
    fn into_u64(self) -> u64;
}

Required Methods§

source

fn from_u64(v: u64) -> Self

source

fn into_u64(self) -> u64

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Varint for i32

source§

fn from_u64(v: u64) -> Self

source§

fn into_u64(self) -> u64

source§

impl Varint for i64

source§

fn from_u64(v: u64) -> Self

source§

fn into_u64(self) -> u64

source§

impl Varint for u32

source§

fn from_u64(v: u64) -> Self

source§

fn into_u64(self) -> u64

source§

impl Varint for u64

source§

fn from_u64(v: u64) -> Self

source§

fn into_u64(self) -> u64

source§

impl Varint for usize

source§

fn from_u64(v: u64) -> Self

source§

fn into_u64(self) -> u64

Implementors§