pub struct DiceExpr {
pub modifier: Modifier,
pub groups: Vec<DiceGroup>,
pub flat_bonus: i64,
}Expand description
A parsed dice expression such as adv 2d10+1d4+3.
Fields§
§modifier: Modifier§groups: Vec<DiceGroup>§flat_bonus: i64Trait Implementations§
impl Eq for DiceExpr
impl StructuralPartialEq for DiceExpr
Auto Trait Implementations§
impl Freeze for DiceExpr
impl RefUnwindSafe for DiceExpr
impl Send for DiceExpr
impl Sync for DiceExpr
impl Unpin for DiceExpr
impl UnsafeUnpin for DiceExpr
impl UnwindSafe for DiceExpr
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