pub enum DiceRollMatrix {
Exact {
value: i32,
},
Percentage(u8),
Chance(u8, Box<DiceRollMatrix>),
Multi(u8, u8),
MultiWithMod(u8, u8, DiceRollMatrixMod),
}Expand description
Dice roll matrix for e.g. serde parsing, etc.
Variants§
Exact
Percentage(u8)
Chance(u8, Box<DiceRollMatrix>)
Multi(u8, u8)
MultiWithMod(u8, u8, DiceRollMatrixMod)
Implementations§
Trait Implementations§
Source§impl Clone for DiceRollMatrix
impl Clone for DiceRollMatrix
Source§fn clone(&self) -> DiceRollMatrix
fn clone(&self) -> DiceRollMatrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiceRollMatrix
impl Debug for DiceRollMatrix
Source§impl<'de> Deserialize<'de> for DiceRollMatrix
impl<'de> Deserialize<'de> for DiceRollMatrix
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiceRollMatrix
Source§impl From<i32> for DiceRollMatrix
impl From<i32> for DiceRollMatrix
Source§impl From<u8> for DiceRollMatrix
impl From<u8> for DiceRollMatrix
Source§impl PartialEq for DiceRollMatrix
impl PartialEq for DiceRollMatrix
Source§fn eq(&self, other: &DiceRollMatrix) -> bool
fn eq(&self, other: &DiceRollMatrix) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiceRollMatrix
impl Serialize for DiceRollMatrix
impl StructuralPartialEq for DiceRollMatrix
Auto Trait Implementations§
impl Freeze for DiceRollMatrix
impl RefUnwindSafe for DiceRollMatrix
impl Send for DiceRollMatrix
impl Sync for DiceRollMatrix
impl Unpin for DiceRollMatrix
impl UnsafeUnpin for DiceRollMatrix
impl UnwindSafe for DiceRollMatrix
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