Trait bytecodec::SizedEncode[][src]

pub trait SizedEncode: Encode {
    fn exact_requiring_bytes(&self) -> u64;
}
Expand description

This trait indicates that the encoder always knows the exact bytes required to encode remaining items.

Required methods

Returns the exact number of bytes required to encode all the items remaining in the encoder.

Implementations on Foreign Types

Implementors