pub struct DiceRoll { /* private fields */ }
Implementations
sourceimpl DiceRoll
impl DiceRoll
pub fn new() -> DiceRoll
pub fn dice(self, amount: i32) -> DiceRoll
pub fn sides(self, amount: i32) -> DiceRoll
pub fn target(self, number: i32) -> DiceRoll
pub fn ones_subtract(self, enabled: bool) -> DiceRoll
pub fn explode_on(self, number: i32) -> DiceRoll
pub fn modifier(self, number: i32) -> DiceRoll
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiceRoll
impl Send for DiceRoll
impl Sync for DiceRoll
impl Unpin for DiceRoll
impl UnwindSafe for DiceRoll
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more