Enum sqlparser::ast::UnaryOperator
source · pub enum UnaryOperator {
Plus,
Minus,
Not,
PGBitwiseNot,
PGSquareRoot,
PGCubeRoot,
PGPostfixFactorial,
PGPrefixFactorial,
PGAbs,
}Expand description
Unary operators
Variants§
Plus
Minus
Not
PGBitwiseNot
Bitwise Not, e.g. ~9 (PostgreSQL-specific)
PGSquareRoot
Square root, e.g. |/9 (PostgreSQL-specific)
PGCubeRoot
Cube root, e.g. ||/27 (PostgreSQL-specific)
PGPostfixFactorial
Factorial, e.g. 9! (PostgreSQL-specific)
PGPrefixFactorial
Factorial, e.g. !!9 (PostgreSQL-specific)
PGAbs
Absolute value, e.g. @ -9 (PostgreSQL-specific)
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 more