pub trait VarSize {
type Size: Scalar + Into<u32>;
}
Expand description
A trait for types that have variable length.
As a rule, these types have an initial length field.
For types with a constant size, see FixedSize
and
for types which can pre-compute their size, see ComputeSize
.
Required Associated Types§
Object Safety§
This trait is not object safe.