pub trait ToBytes {
// Required method
fn to_bytes(&self) -> &[u8] ⓘ;
// Provided method
fn to_bytes_owned(&self) -> Vec<u8> { ... }
}
Required Methods§
Provided Methods§
Sourcefn to_bytes_owned(&self) -> Vec<u8>
fn to_bytes_owned(&self) -> Vec<u8>
Convert the struct to an owned Vec