pub enum UnaryAssignmentOperator {
PrefixIncrement,
PrefixDecrement,
PostfixIncrement,
PostfixDecrement,
}
Expand description
A unary arithmetic assignment operator.
Variants§
PrefixIncrement
Prefix increment (e.g., ++x
).
PrefixDecrement
Prefix increment (e.g., --x
).
PostfixIncrement
Postfix increment (e.g., x++
).
PostfixDecrement
Postfix decrement (e.g., x--
).
Trait Implementations§
Source§impl Clone for UnaryAssignmentOperator
impl Clone for UnaryAssignmentOperator
Source§fn clone(&self) -> UnaryAssignmentOperator
fn clone(&self) -> UnaryAssignmentOperator
Returns a duplicate of the value. Read more
1.0.0 · 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 UnaryAssignmentOperator
impl Debug for UnaryAssignmentOperator
Source§impl Display for UnaryAssignmentOperator
impl Display for UnaryAssignmentOperator
impl Copy for UnaryAssignmentOperator
Auto Trait Implementations§
impl Freeze for UnaryAssignmentOperator
impl RefUnwindSafe for UnaryAssignmentOperator
impl Send for UnaryAssignmentOperator
impl Sync for UnaryAssignmentOperator
impl Unpin for UnaryAssignmentOperator
impl UnwindSafe for UnaryAssignmentOperator
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