[][src]Macro blair_mountain::union

macro_rules! union {
    {
        $(
            $union_vis:vis union $name:ident {
                $($member_vis:vis $member:ident: $member_type:ty,)*
            }
        )*
    } => { ... };
}

Define a union.

Note: fields must be Copy.

Example

pub union Example {
    pub one: &'static str,
    pub two: u32,
}