pub struct ScoreDelta {
pub value: u8,
pub yahtzee_bonus: bool,
pub upper_bonus: bool,
pub next: State,
}Expand description
The outcome of scoring a category: the box value, any bonuses it triggered, and the resulting state.
Fields§
§value: u8The number written in the box (base or joker value).
yahtzee_bonus: boolWhether this roll earned a 100-point Yahtzee bonus.
upper_bonus: boolWhether this write crossed the 63-point upper-bonus threshold.
next: StateThe state after the write.
Implementations§
Trait Implementations§
Source§impl Clone for ScoreDelta
impl Clone for ScoreDelta
Source§fn clone(&self) -> ScoreDelta
fn clone(&self) -> ScoreDelta
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 moreimpl Copy for ScoreDelta
Source§impl Debug for ScoreDelta
impl Debug for ScoreDelta
impl Eq for ScoreDelta
Source§impl Hash for ScoreDelta
impl Hash for ScoreDelta
Source§impl PartialEq for ScoreDelta
impl PartialEq for ScoreDelta
impl StructuralPartialEq for ScoreDelta
Auto Trait Implementations§
impl Freeze for ScoreDelta
impl RefUnwindSafe for ScoreDelta
impl Send for ScoreDelta
impl Sync for ScoreDelta
impl Unpin for ScoreDelta
impl UnsafeUnpin for ScoreDelta
impl UnwindSafe for ScoreDelta
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