pub struct RollCustomDice {
pub dest: RollingRecordIndex,
pub count: AddressingMode,
pub faces: Vec<i32>,
}Expand description
Instruction: Roll a set of custom dice.
Fields§
§dest: RollingRecordIndexThe destination rolling record for the results.
count: AddressingModeThe number of dice to roll.
faces: Vec<i32>The faces of each die in the homogeneous set.
Implementations§
Source§impl RollCustomDice
impl RollCustomDice
Sourcepub fn distinct_faces(&self) -> usize
pub fn distinct_faces(&self) -> usize
Trait Implementations§
Source§impl Clone for RollCustomDice
impl Clone for RollCustomDice
Source§fn clone(&self) -> RollCustomDice
fn clone(&self) -> RollCustomDice
Returns a copy of the value. Read more
1.0.0 · 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 RollCustomDice
impl Debug for RollCustomDice
Source§impl<'de> Deserialize<'de> for RollCustomDice
impl<'de> Deserialize<'de> for RollCustomDice
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
Source§impl Display for RollCustomDice
impl Display for RollCustomDice
Source§impl From<RollCustomDice> for Instruction
impl From<RollCustomDice> for Instruction
Source§fn from(inst: RollCustomDice) -> Self
fn from(inst: RollCustomDice) -> Self
Converts to this type from the input type.
Source§impl Hash for RollCustomDice
impl Hash for RollCustomDice
Source§impl PartialEq for RollCustomDice
impl PartialEq for RollCustomDice
Source§impl Serialize for RollCustomDice
impl Serialize for RollCustomDice
Source§impl TryFrom<Instruction> for RollCustomDice
impl TryFrom<Instruction> for RollCustomDice
impl Eq for RollCustomDice
impl StructuralPartialEq for RollCustomDice
Auto Trait Implementations§
impl Freeze for RollCustomDice
impl RefUnwindSafe for RollCustomDice
impl Send for RollCustomDice
impl Sync for RollCustomDice
impl Unpin for RollCustomDice
impl UnwindSafe for RollCustomDice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more