pub struct RollBatchResult {
pub rolls: Vec<DieRoll>,
pub integer_sum: Option<i64>,
}Expand description
Result of rolling multiple dice.
Fields§
§rolls: Vec<DieRoll>Individual roll results in input order.
integer_sum: Option<i64>Sum of integer faces when at least one integer face was rolled.
Text faces are excluded. This is None when the batch contains no
integer face values.
Trait Implementations§
Source§impl Clone for RollBatchResult
impl Clone for RollBatchResult
Source§fn clone(&self) -> RollBatchResult
fn clone(&self) -> RollBatchResult
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 moreSource§impl Debug for RollBatchResult
impl Debug for RollBatchResult
Source§impl PartialEq for RollBatchResult
impl PartialEq for RollBatchResult
Source§fn eq(&self, other: &RollBatchResult) -> bool
fn eq(&self, other: &RollBatchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RollBatchResult
Auto Trait Implementations§
impl Freeze for RollBatchResult
impl RefUnwindSafe for RollBatchResult
impl Send for RollBatchResult
impl Sync for RollBatchResult
impl Unpin for RollBatchResult
impl UnsafeUnpin for RollBatchResult
impl UnwindSafe for RollBatchResult
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