[][src]Trait protobuf::rt::ProtobufVarint

pub trait ProtobufVarint {
    fn len_varint(&self) -> u32;
}

Helper trait implemented by integer types which could be encoded as varint.

Required methods

fn len_varint(&self) -> u32

Size of self when encoded as varint.

Loading content...

Implementations on Foreign Types

impl ProtobufVarint for u64[src]

impl ProtobufVarint for u32[src]

impl ProtobufVarint for i64[src]

impl ProtobufVarint for i32[src]

impl ProtobufVarint for bool[src]

Loading content...

Implementors

Loading content...