pub trait IntoBytes {
// Required method
fn into_cbytes(&self) -> Vec<u8> ⓘ;
}Expand description
IntoBytes should be used to convert a structure into array of bytes.
Required Methods§
Sourcefn into_cbytes(&self) -> Vec<u8> ⓘ
fn into_cbytes(&self) -> Vec<u8> ⓘ
It should convert a struct into an array of bytes.