pub struct Dice {
pub count: u8,
pub sides: u8,
pub modifiers: Vec<Modifier>,
}Expand description
A set of one or more rollable dice with a specific number of sides, along with a collection of modifiers to apply to any resulting rolls from them.
Fields§
§count: u8Number of dice to roll
sides: u8Number of sides for each die
modifiers: Vec<Modifier>Modifiers to automatically apply to rolls from this set of dice
Implementations§
Trait Implementations§
source§impl GenParser<Dice> for Dice
impl GenParser<Dice> for Dice
source§impl PartialEq for Dice
impl PartialEq for Dice
impl Eq for Dice
impl StructuralPartialEq for Dice
Auto Trait Implementations§
impl Freeze for Dice
impl RefUnwindSafe for Dice
impl Send for Dice
impl Sync for Dice
impl Unpin for Dice
impl UnwindSafe for Dice
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