pub struct Roll {
pub dice: Vec<u32>,
pub total: u32,
}Expand description
The result of a single roll.
Fields§
§dice: Vec<u32>Every die rolled, in the order rolled, without the modifier. For ability scores, this includes the dropped die.
total: u32The final result, after applying any modifier or dropping the lowest die.
Trait Implementations§
impl Eq for Roll
impl StructuralPartialEq for Roll
Auto Trait Implementations§
impl Freeze for Roll
impl RefUnwindSafe for Roll
impl Send for Roll
impl Sync for Roll
impl Unpin for Roll
impl UnsafeUnpin for Roll
impl UnwindSafe for Roll
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