FunctionNode

Enum FunctionNode 

Source
pub enum FunctionNode<'a> {
Show 75 variants Abs(ExprNode<'a>), Upper(ExprNode<'a>), IfNull { expr: ExprNode<'a>, then: ExprNode<'a>, }, NullIf { expr1: ExprNode<'a>, expr2: ExprNode<'a>, }, Ceil(ExprNode<'a>), Rand(Option<ExprNode<'a>>), Round(ExprNode<'a>), Trunc(ExprNode<'a>), Floor(ExprNode<'a>), Asin(ExprNode<'a>), Acos(ExprNode<'a>), Atan(ExprNode<'a>), Sin(ExprNode<'a>), Cos(ExprNode<'a>), Tan(ExprNode<'a>), Pi, Now, CurrentDate, CurrentTime, CurrentTimestamp, Left { expr: ExprNode<'a>, size: ExprNode<'a>, }, Log { antilog: ExprNode<'a>, base: ExprNode<'a>, }, Log2(ExprNode<'a>), Log10(ExprNode<'a>), Ln(ExprNode<'a>), Right { expr: ExprNode<'a>, size: ExprNode<'a>, }, Reverse(ExprNode<'a>), Sign(ExprNode<'a>), Power { expr: ExprNode<'a>, power: ExprNode<'a>, }, Sqrt(ExprNode<'a>), Skip { expr: ExprNode<'a>, size: ExprNode<'a>, }, Gcd { left: ExprNode<'a>, right: ExprNode<'a>, }, Lcm { left: ExprNode<'a>, right: ExprNode<'a>, }, GenerateUuid, Repeat { expr: ExprNode<'a>, num: ExprNode<'a>, }, Replace { expr: ExprNode<'a>, old: ExprNode<'a>, new: ExprNode<'a>, }, Exp(ExprNode<'a>), Lpad { expr: ExprNode<'a>, size: ExprNode<'a>, fill: Option<ExprNode<'a>>, }, Rpad { expr: ExprNode<'a>, size: ExprNode<'a>, fill: Option<ExprNode<'a>>, }, Degrees(ExprNode<'a>), Radians(ExprNode<'a>), Coalesce(ExprList<'a>), Concat(ExprList<'a>), ConcatWs { separator: ExprNode<'a>, exprs: ExprList<'a>, }, Take { expr: ExprNode<'a>, size: ExprNode<'a>, }, Substr { expr: ExprNode<'a>, start: ExprNode<'a>, count: Option<ExprNode<'a>>, }, Ltrim { expr: ExprNode<'a>, chars: Option<ExprNode<'a>>, }, Rtrim { expr: ExprNode<'a>, chars: Option<ExprNode<'a>>, }, Div { dividend: ExprNode<'a>, divisor: ExprNode<'a>, }, Mod { dividend: ExprNode<'a>, divisor: ExprNode<'a>, }, Format { expr: ExprNode<'a>, format: ExprNode<'a>, }, ToDate { expr: ExprNode<'a>, format: ExprNode<'a>, }, ToTimestamp { expr: ExprNode<'a>, format: ExprNode<'a>, }, ToTime { expr: ExprNode<'a>, format: ExprNode<'a>, }, Lower(ExprNode<'a>), Initcap(ExprNode<'a>), Position { from_expr: ExprNode<'a>, sub_expr: ExprNode<'a>, }, FindIdx { from_expr: ExprNode<'a>, sub_expr: ExprNode<'a>, start: Option<ExprNode<'a>>, }, Cast { expr: ExprNode<'a>, data_type: DataTypeNode, }, Extract { field: DateTimeField, expr: ExprNode<'a>, }, Ascii(ExprNode<'a>), Chr(ExprNode<'a>), Md5(ExprNode<'a>), Hex(ExprNode<'a>), Point { x: ExprNode<'a>, y: ExprNode<'a>, }, GetX(ExprNode<'a>), GetY(ExprNode<'a>), Greatest(ExprList<'a>), CalcDistance { geometry1: ExprNode<'a>, geometry2: ExprNode<'a>, }, Length(ExprNode<'a>), IsEmpty(ExprNode<'a>), LastDay(ExprNode<'a>), Entries(ExprNode<'a>), Keys(ExprNode<'a>), Values(ExprNode<'a>),
}

Variants§

§

Abs(ExprNode<'a>)

§

Upper(ExprNode<'a>)

§

IfNull

Fields

§expr: ExprNode<'a>
§then: ExprNode<'a>
§

NullIf

Fields

§expr1: ExprNode<'a>
§expr2: ExprNode<'a>
§

Ceil(ExprNode<'a>)

§

Rand(Option<ExprNode<'a>>)

§

Round(ExprNode<'a>)

§

Trunc(ExprNode<'a>)

§

Floor(ExprNode<'a>)

§

Asin(ExprNode<'a>)

§

Acos(ExprNode<'a>)

§

Atan(ExprNode<'a>)

§

Sin(ExprNode<'a>)

§

Cos(ExprNode<'a>)

§

Tan(ExprNode<'a>)

§

Pi

§

Now

§

CurrentDate

§

CurrentTime

§

CurrentTimestamp

§

Left

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§

Log

Fields

§antilog: ExprNode<'a>
§base: ExprNode<'a>
§

Log2(ExprNode<'a>)

§

Log10(ExprNode<'a>)

§

Ln(ExprNode<'a>)

§

Right

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§

Reverse(ExprNode<'a>)

§

Sign(ExprNode<'a>)

§

Power

Fields

§expr: ExprNode<'a>
§power: ExprNode<'a>
§

Sqrt(ExprNode<'a>)

§

Skip

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§

Gcd

Fields

§left: ExprNode<'a>
§right: ExprNode<'a>
§

Lcm

Fields

§left: ExprNode<'a>
§right: ExprNode<'a>
§

GenerateUuid

§

Repeat

Fields

§expr: ExprNode<'a>
§num: ExprNode<'a>
§

Replace

Fields

§expr: ExprNode<'a>
§old: ExprNode<'a>
§new: ExprNode<'a>
§

Exp(ExprNode<'a>)

§

Lpad

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§fill: Option<ExprNode<'a>>
§

Rpad

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§fill: Option<ExprNode<'a>>
§

Degrees(ExprNode<'a>)

§

Radians(ExprNode<'a>)

§

Coalesce(ExprList<'a>)

§

Concat(ExprList<'a>)

§

ConcatWs

Fields

§separator: ExprNode<'a>
§exprs: ExprList<'a>
§

Take

Fields

§expr: ExprNode<'a>
§size: ExprNode<'a>
§

Substr

Fields

§expr: ExprNode<'a>
§start: ExprNode<'a>
§count: Option<ExprNode<'a>>
§

Ltrim

Fields

§expr: ExprNode<'a>
§chars: Option<ExprNode<'a>>
§

Rtrim

Fields

§expr: ExprNode<'a>
§chars: Option<ExprNode<'a>>
§

Div

Fields

§dividend: ExprNode<'a>
§divisor: ExprNode<'a>
§

Mod

Fields

§dividend: ExprNode<'a>
§divisor: ExprNode<'a>
§

Format

Fields

§expr: ExprNode<'a>
§format: ExprNode<'a>
§

ToDate

Fields

§expr: ExprNode<'a>
§format: ExprNode<'a>
§

ToTimestamp

Fields

§expr: ExprNode<'a>
§format: ExprNode<'a>
§

ToTime

Fields

§expr: ExprNode<'a>
§format: ExprNode<'a>
§

Lower(ExprNode<'a>)

§

Initcap(ExprNode<'a>)

§

Position

Fields

§from_expr: ExprNode<'a>
§sub_expr: ExprNode<'a>
§

FindIdx

Fields

§from_expr: ExprNode<'a>
§sub_expr: ExprNode<'a>
§start: Option<ExprNode<'a>>
§

Cast

Fields

§expr: ExprNode<'a>
§data_type: DataTypeNode
§

Extract

Fields

§expr: ExprNode<'a>
§

Ascii(ExprNode<'a>)

§

Chr(ExprNode<'a>)

§

Md5(ExprNode<'a>)

§

Hex(ExprNode<'a>)

§

Point

Fields

§x: ExprNode<'a>
§y: ExprNode<'a>
§

GetX(ExprNode<'a>)

§

GetY(ExprNode<'a>)

§

Greatest(ExprList<'a>)

§

CalcDistance

Fields

§geometry1: ExprNode<'a>
§geometry2: ExprNode<'a>
§

Length(ExprNode<'a>)

§

IsEmpty(ExprNode<'a>)

§

LastDay(ExprNode<'a>)

§

Entries(ExprNode<'a>)

§

Keys(ExprNode<'a>)

§

Values(ExprNode<'a>)

Trait Implementations§

Source§

impl<'a> Clone for FunctionNode<'a>

Source§

fn clone(&self) -> FunctionNode<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for FunctionNode<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> TryFrom<FunctionNode<'a>> for Function

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(func_node: FunctionNode<'a>) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> Freeze for FunctionNode<'a>

§

impl<'a> RefUnwindSafe for FunctionNode<'a>

§

impl<'a> Send for FunctionNode<'a>

§

impl<'a> Sync for FunctionNode<'a>

§

impl<'a> Unpin for FunctionNode<'a>

§

impl<'a> UnwindSafe for FunctionNode<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V