pub trait DecodeEstimate {
    fn decoded_length_estimate(&self) -> usize;
}
Expand description

The decode estimate used by an engine implementation. Users do not need to interact with this; it is only for engine implementors.

Implementors may store relevant data here when constructing this to avoid having to calculate them again during actual decoding.

Required Methods§

Returns a conservative (err on the side of too big) estimate of the decoded length to use for pre-allocating buffers, etc.

Implementors§