pub enum UnaryOperator {
Show 15 variants
AtDashAt,
BangNot,
BitwiseNot,
DoubleAt,
Hash,
Plus,
Minus,
Not,
PGAbs,
PGCubeRoot,
PGPostfixFactorial,
PGPrefixFactorial,
PGSquareRoot,
QuestionDash,
QuestionPipe,
}sql only.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>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
VisitorMut. Read moreimpl Copy for UnaryOperator
impl Eq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations§
impl Freeze for UnaryOperator
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnsafeUnpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more