[][src]Macro serde_shims::impl_serde_for_bitflags

macro_rules! impl_serde_for_bitflags {
    ($ name : ident) => { ... };
}

Implements Serialize and Deserialize for a bitflags! generated structure.

Note that impl_serde_for_bitflags requires the flag type to implement Serialize and Deserialize.

All primitive integer types satisfy these requirements.

See the bitflags shim for a full example.