pub enum RollType {
KeepHighest,
KeepLowest,
Regular,
}
Expand description
Represents whether a roll has advantage, disadvantage, independence, or not.
Variants§
KeepHighest
The roll will keep the highest of multiple dice rolled. This is used for Advantage in D&D or Bane in Dragonbane.
KeepLowest
The roll will keep the lowest of multiple dice rolled. This is used for Disadvantage in D&D or Boon in Dragonbane.
Regular
A regular roll occurs - only one roll needs to occur.
Trait Implementations§
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 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