Skip to main content

Module die

Module die 

Source
Expand description

Dice definitions and face values. Dice value objects.

This module contains the serializable representation of dice and die faces. Built-in dice use numeric faces; custom dice may mix numeric and text faces.

Structs§

Die
A die with a stable name and ordered set of faces.

Enums§

DieKind
Classifies whether a die is provided by the crate or supplied by a caller.
FaceValue
A single face on a die.

Constants§

CUSTOM_PREFIX
Prefix used for canonical custom die names.

Functions§

builtin_dice
Returns the built-in numeric dice.