Skip to main content

Crate system2_macros

Crate system2_macros 

Source
Expand description

The macros of system2.

Use them through system2, which re-exports each one.

Macros§

bbox
Makes a Bbox that the compiler checks.
choice
Makes a Choice that the compiler checks.
noul
Makes a Noul that the compiler checks.
questions
Makes a question set with a name for each question set in it.
score
Makes a Score that the compiler checks.

Derive Macros§

Answers
Derives Answers for a struct, so that Questions asks the questions of its fields.
Levels
Derives Levels for an enum, so that its variants are the levels of a Score.
Options
Derives Options for an enum, so that its variants are the options of a Choice.