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