Derive Macro restruct_derive::Struct
source · [−]#[derive(Struct)]
{
// Attributes available to this derive:
#[fmt]
#[debug_output]
}
Expand description
Derive packing/unpacking on a given type. See the main documentation on this crate for details.
- Attribute fmt gives the Format String.
- Attribute debug_output causes the generated
TokenStream
to be dumped to stderr while compiling. If therustfmt
feature has been activated, theTokenStream
is formatted.
Both attributes can appear multiple times. Format Strings are concatenated before being interpreted. The debug_output may appear with our without a boolean parameter, with the final occurance being used.