Macro protocol::define_composite_type [] [src]

macro_rules! define_composite_type {
    ($ty:ident { $( $field_name:ident : $field_ty:ty ),+ }) => { ... };
}

Defines a type built out of other primitives.

define_composite_type!(Foo {
    a: u8,
    b: u16
});