pub enum RollingRecordKind<T> {
Uninitialized,
Range {
start: T,
end: T,
},
Standard {
count: T,
faces: T,
},
Custom {
count: T,
faces: Vec<i32>,
},
}Expand description
The kind of rolling record.
Variants§
Uninitialized
An uninitialized rolling record.
Range
A record of a range roll.
Standard
A record of a standard dice roll.
Custom
A record of a custom dice roll.
Implementations§
Source§impl RollingRecordKind<i32>
impl RollingRecordKind<i32>
Source§impl RollingRecordKind<EvaluationBounds>
impl RollingRecordKind<EvaluationBounds>
Sourcepub fn count(&self) -> Option<EvaluationBounds>
pub fn count(&self) -> Option<EvaluationBounds>
Obtain the number of dice in the rolling record. Applicable for all initialized rolling records.
§Returns
The count of dice in the rolling record, or None if the rolling record
hasn’t been initialized yet.
Trait Implementations§
Source§impl<T: Clone> Clone for RollingRecordKind<T>
impl<T: Clone> Clone for RollingRecordKind<T>
Source§fn clone(&self) -> RollingRecordKind<T>
fn clone(&self) -> RollingRecordKind<T>
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<T: Debug> Debug for RollingRecordKind<T>
impl<T: Debug> Debug for RollingRecordKind<T>
Source§impl<T> Default for RollingRecordKind<T>
impl<T> Default for RollingRecordKind<T>
Source§fn default() -> RollingRecordKind<T>
fn default() -> RollingRecordKind<T>
Returns the “default value” for a type. Read more
Source§impl<T> Display for RollingRecordKind<T>where
T: Display,
impl<T> Display for RollingRecordKind<T>where
T: Display,
Source§impl<T: Hash> Hash for RollingRecordKind<T>
impl<T: Hash> Hash for RollingRecordKind<T>
Source§impl<T: PartialEq> PartialEq for RollingRecordKind<T>
impl<T: PartialEq> PartialEq for RollingRecordKind<T>
impl<T: Eq> Eq for RollingRecordKind<T>
impl<T> StructuralPartialEq for RollingRecordKind<T>
Auto Trait Implementations§
impl<T> Freeze for RollingRecordKind<T>where
T: Freeze,
impl<T> RefUnwindSafe for RollingRecordKind<T>where
T: RefUnwindSafe,
impl<T> Send for RollingRecordKind<T>where
T: Send,
impl<T> Sync for RollingRecordKind<T>where
T: Sync,
impl<T> Unpin for RollingRecordKind<T>where
T: Unpin,
impl<T> UnwindSafe for RollingRecordKind<T>where
T: UnwindSafe,
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