Enum gurgle::roll::ItemRoll[][src]

pub enum ItemRoll {
    Dice(DiceRoll),
    Number(i64),
    Parentheses(Box<RollTreeNode>),
}
Expand description

Rolling result of a gurgle expression tree Item

Variants

Dice

rolling result of a dice item

Tuple Fields of Dice

0: DiceRoll
Number

number item, rolling result is itself

Tuple Fields of Number

0: i64
Parentheses

rolling result of another sub expr, which is commonly wrapped by parentheses

Tuple Fields of Parentheses

0: Box<RollTreeNode>

Implementations

Get rolling result value

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.