[−][src]Trait critfail::RollExpression
Used for structs defining a set of dice that can be rolled.
Associated Types
type Outcome: Display + Debug
The roll result type should implement both Display and Debug. Display should print out a consise result for the roll, and Debug should print out the details (eg the value for each rolled die).
Required methods
Loading content...Provided methods
fn new(expression: &str) -> Result<Self, ParseError>
Create a new roll expression by parsing the given string.