pub enum UnaryOp {
Show 13 variants
Not,
Negate,
Plus,
BitNot,
Factorial,
IsNull,
IsNotNull,
IsTrue,
IsNotTrue,
IsFalse,
IsNotFalse,
IsUnknown,
IsNotUnknown,
}Expand description
A prefix or postfix operator.
Variants§
Not
NOT x.
Negate
-x.
Plus
+x, which is a no-op that still has to survive to the binder so that +'a' errors.
BitNot
~x.
Factorial
x!.
IsNull
x IS NULL or x ISNULL.
IsNotNull
x IS NOT NULL or x NOTNULL.
IsTrue
x IS TRUE.
IsNotTrue
x IS NOT TRUE.
IsFalse
x IS FALSE.
IsNotFalse
x IS NOT FALSE.
IsUnknown
x IS UNKNOWN.
IsNotUnknown
x IS NOT UNKNOWN.
Trait Implementations§
impl Copy for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnsafeUnpin for UnaryOp
impl UnwindSafe for UnaryOp
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