Enum xlang_syntax::ast::UnaryOp
source · [−]pub enum UnaryOp {
Deref,
Cloned,
New,
Pos,
Neg,
Not,
BitNot,
}Expand description
An operator which takes only one operand.
Variants
Deref
.deref
Cloned
.cloned
New
.new
Pos
+
Neg
-
Not
!
BitNot
~
Trait Implementations
impl Copy for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnwindSafe for UnaryOp
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