Struct gurgle::expr::Dice [−][src]
pub struct Dice { pub times: u64, pub sided: u64, pub pp: PostProcessor, }
Expand description
Rule of a round of dice roll
Fields
times: u64
roll dice how many times
sided: u64
side count of this dice
pp: PostProcessor
post processing action after all roll, see PostProcessor
Implementations
Create a new n
sided dice and roll it m
times, with default post processor Sum
Create a new n
sided dice and roll it m
times, with post processor pp
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dice
impl UnwindSafe for Dice
Blanket Implementations
Mutably borrows from an owned value. Read more