pub struct DiceRoll {
pub number_of_dice_to_roll: u32,
pub die: Dice,
}Expand description
This struct represents the information required to calculate the result of a dice roll given the command string. Validating the sanity of each of the parameters is left to the user. e.g. The number of dice to roll could be 0.
Fields§
§number_of_dice_to_roll: u32How many dice should be rolled.
die: DiceWhich type of dice it is.
Implementations§
Trait Implementations§
impl StructuralPartialEq for DiceRoll
Auto Trait Implementations§
impl Freeze for DiceRoll
impl RefUnwindSafe for DiceRoll
impl Send for DiceRoll
impl Sync for DiceRoll
impl Unpin for DiceRoll
impl UnwindSafe for DiceRoll
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more