pub trait ComputeSize: ReadArgs {
    fn compute_size(args: &Self::Args) -> usize;
}
Expand description

A type that can compute its size at runtime, based on some input.

For types with a constant size, see FixedSize and for types which store their size inline, see VarSize.

Required Methods

Compute the number of bytes required to represent this type.

Implementors