Macro protocol::implement_composite_type
source · macro_rules! implement_composite_type {
($ty:ident { $( $field_name:ident ),+ }) => { ... };
}
Expand description
Implements Parcel
for some struct.
This is used to enable serialization of fields for arbitrary structs.
pub struct Foo { a: u8, b: u16 };
implement_composite_type!(Foo { a, b });