Enum UnaryOperator
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§
§impl Clone for UnaryOperator
impl Clone for UnaryOperator
§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§impl Debug for UnaryOperator
impl Debug for UnaryOperator
§impl Display for UnaryOperator
impl Display for UnaryOperator
§impl Hash for UnaryOperator
impl Hash for UnaryOperator
§impl Ord for UnaryOperator
impl Ord for UnaryOperator
§impl PartialEq for UnaryOperator
impl PartialEq for UnaryOperator
§impl PartialOrd for UnaryOperator
impl PartialOrd for UnaryOperator
§impl Visit for UnaryOperator
impl Visit for UnaryOperator
§impl VisitMut for UnaryOperator
impl VisitMut for UnaryOperator
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl 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 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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.