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 U8Encoder
impl ExactBytesEncode for I8Encoder
impl ExactBytesEncode for U16beEncoder
impl ExactBytesEncode for U16leEncoder
impl ExactBytesEncode for I16beEncoder
impl ExactBytesEncode for I16leEncoder
impl ExactBytesEncode for U24beEncoder
impl ExactBytesEncode for U24leEncoder
impl ExactBytesEncode for U32beEncoder
impl ExactBytesEncode for U32leEncoder
impl ExactBytesEncode for I32beEncoder
impl ExactBytesEncode for I32leEncoder
impl ExactBytesEncode for U40beEncoder
impl ExactBytesEncode for U40leEncoder
impl ExactBytesEncode for U48beEncoder
impl ExactBytesEncode for U48leEncoder
impl ExactBytesEncode for U56beEncoder
impl ExactBytesEncode for U56leEncoder
impl ExactBytesEncode for U64beEncoder
impl ExactBytesEncode for U64leEncoder
impl ExactBytesEncode for I64beEncoder
impl ExactBytesEncode for I64leEncoder
impl ExactBytesEncode for F32beEncoder
impl ExactBytesEncode for F32leEncoder
impl ExactBytesEncode for F64beEncoder
impl ExactBytesEncode for F64leEncoder
impl<E0, E1> ExactBytesEncode for Tuple2Encoder<E0, E1> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,impl<E0, E1, E2> ExactBytesEncode for Tuple3Encoder<E0, E1, E2> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,impl<E0, E1, E2, E3> ExactBytesEncode for Tuple4Encoder<E0, E1, E2, E3> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,impl<E0, E1, E2, E3, E4> ExactBytesEncode for Tuple5Encoder<E0, E1, E2, E3, E4> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,impl<E0, E1, E2, E3, E4, E5> ExactBytesEncode for Tuple6Encoder<E0, E1, E2, E3, E4, E5> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,
E5: ExactBytesEncode,impl<E0, E1, E2, E3, E4, E5, E6> ExactBytesEncode for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,
E5: ExactBytesEncode,
E6: ExactBytesEncode,impl<E0, E1, E2, E3, E4, E5, E6, E7> ExactBytesEncode for Tuple8Encoder<E0, E1, E2, E3, E4, E5, E6, E7> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,
E5: ExactBytesEncode,
E6: ExactBytesEncode,
E7: ExactBytesEncode,impl ExactBytesEncode for StartEncoderChain
impl<E0, E1, T> ExactBytesEncode for EncoderChain<E0, E1, T> where
Self: Encode,
E0: ExactBytesEncode,
E1: ExactBytesEncode,