Trait bytecodec::SizedEncode [] [src]

pub trait SizedEncode: 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<'a, E: ?Sized + SizedEncode> SizedEncode for &'a mut E
[src]

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

Implementors