pub enum UnaryOperator {
Show 15 variants
AtDashAt,
BangNot,
BitwiseNot,
DoubleAt,
Hash,
Plus,
Minus,
Not,
PGAbs,
PGCubeRoot,
PGPostfixFactorial,
PGPrefixFactorial,
PGSquareRoot,
QuestionDash,
QuestionPipe,
}Expand description
Unary operators
Variants§
AtDashAt
@-@ Length or circumference (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
BangNot
Unary logical not operator: e.g. ! false (Hive-specific)
BitwiseNot
Bitwise Not, e.g. ~9
DoubleAt
@@ Center (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
Hash
# Number of points in path or polygon (PostgreSQL/Redshift geometric operator)
see https://www.postgresql.org/docs/9.5/functions-geometry.html
Plus
Plus, e.g. +9
Minus
Minus, e.g. -9
Not
Not, e.g. NOT(true)
PGAbs
Absolute value, 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)
PGSquareRoot
Square root, e.g. |/9 (PostgreSQL-specific)
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 moreSource§impl Debug for UnaryOperator
impl Debug for UnaryOperator
Source§impl Display for UnaryOperator
impl Display for UnaryOperator
Source§impl Hash for UnaryOperator
impl Hash for UnaryOperator
Source§impl Ord for UnaryOperator
impl Ord for UnaryOperator
Source§fn cmp(&self, other: &UnaryOperator) -> Ordering
fn cmp(&self, other: &UnaryOperator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for UnaryOperator
impl PartialEq for UnaryOperator
Source§impl PartialOrd for UnaryOperator
impl PartialOrd for UnaryOperator
Source§impl Visit for UnaryOperator
impl Visit for UnaryOperator
Source§impl VisitMut for UnaryOperator
impl VisitMut for UnaryOperator
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
VisitorMut. Read more