pub enum Function {
Show 90 variants
Opposite,
Not,
Plus,
Minus,
Multiply,
Divide,
Modulo,
StringConcat,
Gt,
Lt,
GtEq,
LtEq,
Eq,
NotEq,
And,
Or,
Xor,
BitwiseOr,
BitwiseAnd,
BitwiseXor,
Exp,
Ln,
Log,
Abs,
Sin,
Cos,
Sqrt,
Pow,
Case,
Concat(usize),
CharLength,
Lower,
Upper,
Md5,
Position,
Random(usize),
Pi,
CastAsText,
CastAsFloat,
CastAsInteger,
CastAsBoolean,
CastAsDateTime,
CastAsDate,
CastAsTime,
Least,
Greatest,
Rtrim,
Ltrim,
Substr,
SubstrWithSize,
Ceil,
Floor,
Round,
Trunc,
RegexpContains,
RegexpExtract,
RegexpReplace,
Newid,
Encode,
Decode,
Unhex,
CurrentDate,
CurrentTime,
CurrentTimestamp,
ExtractEpoch,
ExtractYear,
ExtractMonth,
ExtractDay,
ExtractHour,
ExtractMinute,
ExtractSecond,
ExtractMicrosecond,
ExtractMillisecond,
ExtractDow,
ExtractWeek,
Dayname,
FromUnixtime,
UnixTimestamp,
DateFormat,
Quarter,
DatetimeDiff,
Date,
InList,
Coalesce,
Sign,
Like,
Ilike,
Choose,
IsNull,
IsBool,
}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
Exp
Ln
Log
Abs
Sin
Cos
Sqrt
Pow
Case
Concat(usize)
CharLength
Lower
Upper
Md5
Position
Random(usize)
Pi
CastAsText
CastAsFloat
CastAsInteger
CastAsBoolean
CastAsDateTime
CastAsDate
CastAsTime
Least
Greatest
Rtrim
Ltrim
Substr
SubstrWithSize
Ceil
Floor
Round
Trunc
RegexpContains
RegexpExtract
RegexpReplace
Newid
Encode
Decode
Unhex
CurrentDate
CurrentTime
CurrentTimestamp
ExtractEpoch
ExtractYear
ExtractMonth
ExtractDay
ExtractHour
ExtractMinute
ExtractSecond
ExtractMicrosecond
ExtractMillisecond
ExtractDow
ExtractWeek
Dayname
FromUnixtime
UnixTimestamp
DateFormat
Quarter
DatetimeDiff
Date
InList
Coalesce
Sign
Like
Ilike
Choose
IsNull
IsBool
Implementations§
Source§impl Function
impl Function
Trait Implementations§
impl Copy for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.