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§