pub trait HasEncodedLen<T>: Codec<T> { // Required method fn encoded_len(&self, msg: &T) -> Result<usize, <Self as Codec<T>>::Error>; }
Codec extension trait for types that can also compute the length of the encoded data.