Struct varint::Varint [] [src]

pub struct Varint {
    pub data: VecDeque<u8>,
}

A struct defining a variable-length integer

Fields

data: VecDeque<u8>

The internal data representation

Methods

impl Varint
[src]

fn number_of_bytes(&self) -> usize

Gets the number of bytes currently contained by this Varint

Trait Implementations

impl Debug for Varint
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Varint
[src]

fn clone(&self) -> Varint

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more