pub struct DropHighest {
pub dest: RollingRecordIndex,
pub count: AddressingMode,
}Expand description
Instruction: Drop the highest dice from a rolling record. This simply involves marking the highest dice as dropped, so that they are not included in the sum computed by SumRollingRecord. A negative count will put back highest dice that were previously dropped. The number of dice to drop is clamped to the number of dice in the record.
Fields§
§dest: RollingRecordIndexThe rolling record from which to drop dice.
count: AddressingModeThe number of dice to drop.
Trait Implementations§
Source§impl Clone for DropHighest
impl Clone for DropHighest
Source§fn clone(&self) -> DropHighest
fn clone(&self) -> DropHighest
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 DropHighest
impl Debug for DropHighest
Source§impl<'de> Deserialize<'de> for DropHighest
impl<'de> Deserialize<'de> for DropHighest
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 DropHighest
impl Display for DropHighest
Source§impl From<DropHighest> for Instruction
impl From<DropHighest> for Instruction
Source§fn from(inst: DropHighest) -> Self
fn from(inst: DropHighest) -> Self
Converts to this type from the input type.
Source§impl Hash for DropHighest
impl Hash for DropHighest
Source§impl PartialEq for DropHighest
impl PartialEq for DropHighest
Source§impl Serialize for DropHighest
impl Serialize for DropHighest
Source§impl TryFrom<Instruction> for DropHighest
impl TryFrom<Instruction> for DropHighest
impl Copy for DropHighest
impl Eq for DropHighest
impl StructuralPartialEq for DropHighest
Auto Trait Implementations§
impl Freeze for DropHighest
impl RefUnwindSafe for DropHighest
impl Send for DropHighest
impl Sync for DropHighest
impl Unpin for DropHighest
impl UnwindSafe for DropHighest
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