Module dice

Source
Expand description

All functionality for directly creating dice, rolling them, and working with their resulting rolls.

This is the home of the dice “primitives”. For using as part of a larger expression, see Expr::dice.

Re-exports§

pub use self::modifier::Modifier;
pub use self::roller::Roller;

Modules§

modifier
Dice modifiers and their related types.
roller
Abstractions for rolling DieRolls using various means.

Structs§

Builder
Builds Dice with a fluent interface.
Dice
A set of one or more rollable dice with a specific number of sides, along with a collection of modifiers to apply to any resulting rolls from them.
DieRoll
Single die produced from rolling Dice and optionally applying Modifiers
Rolled
Representation of the result from rolling Dice
ValChange
Details about a modification made to a DieRoll as a result of a Modifier being applied to it

Enums§

Error
An error resulting from a dice operation