Macros§
Attribute Macros§
- init_
static_ initializers - sim_
test - The sim_test macro will invoke
#[msim::test]if the simulator config var is enabled. - sui_
test - The sui_test macro will invoke either
#[msim::test]or#[tokio::test], depending on whether the simulator config var is enabled. - with_
checked_ arithmetic
Derive Macros§
- Enum
Variant Order - This proc macro generates a function
order_to_variant_mapwhich returns a map of the position of each variant to the name of the variant. It is intended to catch changes in enum order when backward compat is required.