pub enum Operator {
Add,
Sub,
Mul,
Div,
}Expand description
An arithmetic operator in a modifier.
Parses from +, -, * or /.
Variants§
Add
Adds the value to the total (+).
Sub
Subtracts the value from the total, stopping at zero (-).
Mul
Multiplies the total by the value (*).
Div
Divides the total by the value, rounding down (/).
Trait Implementations§
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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