#[flat]Expand description
Attribute macro that creates a flat type from struct or enum declaration.
§Usage examples
#[flatty::flat(sized = false)]
struct ... { ... }or
#[flatty::flat(sized = false, tag_type = "u32")]
enum ... { ... }§Arguments
sized: bool, optional,trueby default. Whether structure is sized or not.tag_type: str, forenumdeclaration only, optional,"u8"by default. The type used for enum variant index. Possible values:"u8","u16","u32".portable: bool, optional,falseby default. Whether structure should implementPortable.default: bool, optional,falseby default. Whether to create default constructors (seeFlatDefault).