pub trait SizedEncode: Encode {
// Required method
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§
Sourcefn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.