pub enum TypeOfDice {
Show 16 variants
D3 = 3,
D4 = 4,
D5 = 5,
D6 = 6,
D7 = 7,
D8 = 8,
D10 = 10,
D12 = 12,
D14 = 14,
D16 = 16,
D20 = 20,
D24 = 24,
D30 = 30,
D50 = 50,
D60 = 60,
D100 = 100,
}Expand description
Represents the different kinds of dice available for rolling.
This enum restricts rolls to standard RPG dice such as D6, D20, etc.
Variants§
D3 = 3
D4 = 4
D5 = 5
D6 = 6
D7 = 7
D8 = 8
D10 = 10
D12 = 12
D14 = 14
D16 = 16
D20 = 20
D24 = 24
D30 = 30
D50 = 50
D60 = 60
D100 = 100
Implementations§
Trait Implementations§
Source§impl Clone for TypeOfDice
impl Clone for TypeOfDice
impl Copy for TypeOfDice
Source§impl Debug for TypeOfDice
impl Debug for TypeOfDice
Source§impl PartialEq for TypeOfDice
impl PartialEq for TypeOfDice
impl StructuralPartialEq for TypeOfDice
Auto Trait Implementations§
impl Freeze for TypeOfDice
impl RefUnwindSafe for TypeOfDice
impl Send for TypeOfDice
impl Sync for TypeOfDice
impl Unpin for TypeOfDice
impl UnsafeUnpin for TypeOfDice
impl UnwindSafe for TypeOfDice
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