pub enum Function {
Show 43 variants
Opposite,
Not,
Plus,
Minus,
Multiply,
Divide,
Modulo,
StringConcat,
Gt,
Lt,
GtEq,
LtEq,
Eq,
NotEq,
And,
Or,
Xor,
BitwiseOr,
BitwiseAnd,
BitwiseXor,
InList,
Exp,
Ln,
Log,
Abs,
Sin,
Cos,
Sqrt,
Pow,
Case,
Concat(usize),
CharLength,
Lower,
Upper,
Md5,
Position,
Random(usize),
CastAsText,
CastAsFloat,
CastAsInteger,
CastAsDateTime,
Least,
Greatest,
}
Expand description
The list of operators inspired by: https://docs.rs/sqlparser/latest/sqlparser/ast/enum.BinaryOperator.html and mostly: https://docs.rs/polars/latest/polars/prelude/enum.Operator.html
Variants§
Opposite
Not
Plus
Minus
Multiply
Divide
Modulo
StringConcat
Gt
Lt
GtEq
LtEq
Eq
NotEq
And
Or
Xor
BitwiseOr
BitwiseAnd
BitwiseXor
InList
Exp
Ln
Log
Abs
Sin
Cos
Sqrt
Pow
Case
Concat(usize)
CharLength
Lower
Upper
Md5
Position
Random(usize)
CastAsText
CastAsFloat
CastAsInteger
CastAsDateTime
Least
Greatest
Implementations§
Trait Implementations§
source§impl PartialEq for Function
impl PartialEq for Function
impl Copy for Function
impl Eq for Function
impl StructuralEq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.