pub trait Pack<T: Entity> {
// Required method
fn pack(&self) -> T;
}
Expand description
A syntactic sugar to convert a rust type into binary data.
pub trait Pack<T: Entity> {
// Required method
fn pack(&self) -> T;
}
A syntactic sugar to convert a rust type into binary data.