Trait cornflakes::Writable
source · pub trait Writable: DataSize {
fn write_to(&self, writer: &mut impl BufMut) -> WriteResult;
}
Expand description
Allows a type to be written as bytes.
pub trait Writable: DataSize {
fn write_to(&self, writer: &mut impl BufMut) -> WriteResult;
}
Allows a type to be written as bytes.