Sealed

Trait Sealed 

Source
pub trait Sealed {
    // Required method
    fn into_u64(self) -> u64;
}
Expand description

A seal to prevent implementing VarInt on foreign types.

Required Methods§

Source

fn into_u64(self) -> u64

Lossless, guaranteed conversion into a u64.

This is due to internally implementing encoding for u64 alone and usize not implementing From<u64>.

Implementations on Foreign Types§

Source§

impl Sealed for u8

Source§

fn into_u64(self) -> u64

Source§

impl Sealed for u32

Source§

fn into_u64(self) -> u64

Source§

impl Sealed for u64

Source§

fn into_u64(self) -> u64

Source§

impl Sealed for usize

Source§

fn into_u64(self) -> u64

Implementors§