pub struct Unary {
pub operator: Operator,
pub expr: ExprRef,
}Expand description
Unary operation (e.g., -x, NOT active).
Represents operations that take a single operand.
§Examples
In WHERE NOT e.deleted, the NOT e.deleted is a unary operation.
Fields§
§operator: OperatorThe operator (Add for +, Sub for -, Not for NOT)
expr: ExprRefThe operand expression
Trait Implementations§
impl Copy for Unary
impl Eq for Unary
impl StructuralPartialEq for Unary
Auto Trait Implementations§
impl Freeze for Unary
impl RefUnwindSafe for Unary
impl Send for Unary
impl Sync for Unary
impl Unpin for Unary
impl UnwindSafe for Unary
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