#[non_exhaustive]pub enum RollType {
Normal(Notation),
Advantage(Notation),
Disadvantage(Notation),
Critical(Notation),
AbilityScores,
}Expand description
What to roll, and how.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal(Notation)
Roll the notation once.
Advantage(Notation)
Roll the notation twice, returning the results highest first.
Disadvantage(Notation)
Roll the notation twice, returning the results lowest first.
Critical(Notation)
Roll the notation as a critical hit: double the dice, apply the
modifier once. See Notation::critical.
AbilityScores
Roll six ability scores, each 4d6 with the lowest die dropped.
Trait Implementations§
impl Copy for RollType
impl Eq for RollType
impl StructuralPartialEq for RollType
Auto Trait Implementations§
impl Freeze for RollType
impl RefUnwindSafe for RollType
impl Send for RollType
impl Sync for RollType
impl Unpin for RollType
impl UnsafeUnpin for RollType
impl UnwindSafe for RollType
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