Trait protobuf::rt::ProtobufVarint [−][src]
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
[src]
Size of self when encoded as varint.
Implementations on Foreign Types
impl ProtobufVarint for u64
[src]
impl ProtobufVarint for u64
[src]fn len_varint(&self) -> u32
[src]
impl ProtobufVarint for u32
[src]
impl ProtobufVarint for u32
[src]fn len_varint(&self) -> u32
[src]
impl ProtobufVarint for i64
[src]
impl ProtobufVarint for i64
[src]fn len_varint(&self) -> u32
[src]
impl ProtobufVarint for i32
[src]
impl ProtobufVarint for i32
[src]fn len_varint(&self) -> u32
[src]
impl ProtobufVarint for bool
[src]
impl ProtobufVarint for bool
[src]