protobuf::rt

Trait ProtobufVarintZigzag

Source
pub trait ProtobufVarintZigzag {
    // Required method
    fn len_varint_zigzag(&self) -> u32;
}
Expand description

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

Required Methods§

Source

fn len_varint_zigzag(&self) -> u32

Size of self when encoded as zigzag varint.

Implementations on Foreign Types§

Source§

impl ProtobufVarintZigzag for i32

Source§

impl ProtobufVarintZigzag for i64

Implementors§