pub trait ToBytes {
type Bytes: IntoIterator<Item = u8>;
// Required method
fn to_bytes(&self) -> Self::Bytes;
}
Expand description
Operation types that may be converted to their serialized form in bytes.
Required Associated Types§
Sourcetype Bytes: IntoIterator<Item = u8>
type Bytes: IntoIterator<Item = u8>
The iterator yielding bytes.