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
fn exact_requiring_bytes(&self) -> u64
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]
fn exact_requiring_bytes(&self) -> u64[src]
Implementors
impl<B: AsRef<[u8]>> ExactBytesEncode for BytesEncoder<B>impl<S: AsRef<str>> ExactBytesEncode for Utf8Encoder<S>impl<C, F, E> ExactBytesEncode for MapErr<C, F, E> where
C: ExactBytesEncode,
F: Fn(Error) -> E,
Error: From<E>,impl<E, T, F> ExactBytesEncode for MapFrom<E, T, F> where
E: ExactBytesEncode,
F: Fn(T) -> E::Item,impl<C, T, E, F> ExactBytesEncode for TryMapFrom<C, T, E, F> where
C: ExactBytesEncode,
F: Fn(T) -> Result<C::Item, E>,
Error: From<E>,impl<E: ExactBytesEncode> ExactBytesEncode for Optional<E>impl<E: Encode> ExactBytesEncode for Length<E>impl<E: ExactBytesEncode> ExactBytesEncode for MaxBytes<E>impl<E0, E1, F> ExactBytesEncode for WithPrefix<E0, E1, F> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
F: Fn(&E0) -> E1::Item,impl<E: Encode> ExactBytesEncode for PreEncode<E>impl<E: ExactBytesEncode> ExactBytesEncode for Slice<E>impl<E: ExactBytesEncode> ExactBytesEncode for Last<E>impl ExactBytesEncode for U8Encoderimpl ExactBytesEncode for I8Encoderimpl ExactBytesEncode for U16beEncoderimpl ExactBytesEncode for U16leEncoderimpl ExactBytesEncode for I16beEncoderimpl ExactBytesEncode for I16leEncoderimpl ExactBytesEncode for U24beEncoderimpl ExactBytesEncode for U24leEncoderimpl ExactBytesEncode for U32beEncoderimpl ExactBytesEncode for U32leEncoderimpl ExactBytesEncode for I32beEncoderimpl ExactBytesEncode for I32leEncoderimpl ExactBytesEncode for U40beEncoderimpl ExactBytesEncode for U40leEncoderimpl ExactBytesEncode for U48beEncoderimpl ExactBytesEncode for U48leEncoderimpl ExactBytesEncode for U56beEncoderimpl ExactBytesEncode for U56leEncoderimpl ExactBytesEncode for U64beEncoderimpl ExactBytesEncode for U64leEncoderimpl ExactBytesEncode for I64beEncoderimpl ExactBytesEncode for I64leEncoderimpl ExactBytesEncode for F32beEncoderimpl ExactBytesEncode for F32leEncoderimpl ExactBytesEncode for F64beEncoderimpl ExactBytesEncode for F64leEncoderimpl ExactBytesEncode for StartEncoderChainimpl<E0, E1, T> ExactBytesEncode for EncoderChain<E0, E1, T> where
Self: Encode,
E0: ExactBytesEncode,
E1: ExactBytesEncode,