define_microcode

Attribute Macro define_microcode 

Source
#[define_microcode]
Expand description

Generates the Microcode type from a Rust module. The module that this attribute macro is placed on must be defined in-line not in a separate file. The attribute macro takes a single argument, which is the name to use for the Microcode type.

Doc comments applies to the module will be copied to the Microcode type. The visibility modifier of the Microcode type is taken from the module this attribute is applied to.