Struct dice::Dice [] [src]

pub struct Dice(_, _);

A set of same-sized dice.

Methods

impl Dice
[src]

Returns the smallest possible result of rolling this set of dice.

Returns the largest possible result of rolling this set of dice.

Returns the average result of rolling this set of dice.

Returns all the possible results of rolling this set of dice.

Returns the probabilities of all the possible results of rolling this set of dice.

impl Dice
[src]

Constructs a new Dice.

Panics

  • size is zero

Returns the size of this set of dice.

Returns the die used in this set of dice.

Rolls this set of dice and returns the combined result.

Trait Implementations

impl Copy for Dice
[src]

impl Clone for Dice
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Dice
[src]

Formats the value using the given formatter.

impl PartialEq for Dice
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Dice
[src]

impl Hash for Dice
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more