pub enum UnaryOperator {
Show 15 variants
Plus,
Minus,
Not,
PGBitwiseNot,
PGSquareRoot,
PGCubeRoot,
PGPostfixFactorial,
PGPrefixFactorial,
PGAbs,
BangNot,
Hash,
AtDashAt,
DoubleAt,
QuestionDash,
QuestionPipe,
}
Expand description
Unary operators
Variants§
Plus
Plus, e.g. +9
Minus
Minus, e.g. -9
Not
Not, e.g. NOT(true)
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)
BangNot
Unary logical not operator: e.g. ! false
(Hive-specific)
Hash
#
Number of points in path or polygon (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
AtDashAt
@-@
Length or circumference (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
DoubleAt
@@
Center (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
QuestionDash
?-
Is horizontal? (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
QuestionPipe
?|
Is vertical? (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
Trait Implementations§
Source§impl Clone for UnaryOperator
impl Clone for UnaryOperator
Source§fn clone(&self) -> UnaryOperator
fn clone(&self) -> UnaryOperator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more