Trait bytecodec::ExactBytesEncode [] [src]

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

This trait indicates that the encoder always known 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

impl<E: ?Sized + ExactBytesEncode> ExactBytesEncode for Box<E>
[src]

Implementors