pub enum UnaryOperator {
PostIncrement,
PostDecrement,
PreIncrement,
PreDecrement,
Address,
Indirection,
Plus,
Minus,
Complement,
Negate,
}
Expand description
All operators with one operand
(C11 6.5)
Variants§
PostIncrement
operand++
PostDecrement
operand--
PreIncrement
++operand
PreDecrement
--operand
Address
&operand
Indirection
*operand
Plus
+operand
Minus
-operand
Complement
~operand
Negate
!operand
Trait Implementations§
Source§impl Clone for UnaryOperator
impl Clone for UnaryOperator
Source§fn clone(&self) -> UnaryOperator
fn clone(&self) -> UnaryOperator
Returns a copy 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 UnaryOperator
impl Debug for UnaryOperator
Source§impl Hash for UnaryOperator
impl Hash for UnaryOperator
Source§impl PartialEq for UnaryOperator
impl PartialEq for UnaryOperator
impl Eq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations§
impl Freeze for UnaryOperator
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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