pub trait EncodeExt<'a>: Encode + Sized + 'a {
fn encode_iter(
items: impl Iterator<Item = &'a Self>,
buff: &mut [u8]
) -> Result<usize, Self::Error> { ... }
fn encode_buff<const N: usize>(
&self
) -> Result<([u8; N], usize), Self::Error> { ... }
}
Expand description
Extensions to Encode
trait for encodable types