Struct rfyl::DiceRolls [] [src]

pub struct DiceRolls { /* fields omitted */ }

Methods

impl DiceRolls
[src]

Returns an i32 as the result of the formula including any calculational operators.

Returns an i32 as the simple sum of all rolls.

Returns a formatted String showing the dice and the rolled results.

Remarks

From my current experimentation, this appears to be close to ~O(cn). While it doesn't get slow until ludicrous numbers to dice rolls (1 million +), there's probably a better way to do this.

Returns a postfix formatted String showing the formula.

Returns an infix formatted String showing the formula.

Returns a postfix formatted String showing the formula withthe original dice notation instead of the rolled result.

Returns a infix formatted String showing the formula withthe original dice notation instead of the rolled result.

Trait Implementations

impl Clone for DiceRolls
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more