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: u8
Number of dice to roll
sides: u8
Number 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 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef
].