pub struct TypeOfFunction;Expand description
TYPEOF function - returns the data type name of a value
Trait Implementations§
Source§impl Default for TypeOfFunction
impl Default for TypeOfFunction
Source§fn default() -> TypeOfFunction
fn default() -> TypeOfFunction
Returns the “default value” for a type. Read more
Source§impl ScalarFunction for TypeOfFunction
impl ScalarFunction for TypeOfFunction
Source§fn info(&self) -> FunctionInfo
fn info(&self) -> FunctionInfo
Get function information
Source§fn evaluate(&self, args: &[Value]) -> Result<Value>
fn evaluate(&self, args: &[Value]) -> Result<Value>
Evaluate the function with the given arguments
Source§fn clone_box(&self) -> Box<dyn ScalarFunction>
fn clone_box(&self) -> Box<dyn ScalarFunction>
Clone the function into a new instance
Source§fn native_fn1(&self) -> Option<NativeFn1>
fn native_fn1(&self) -> Option<NativeFn1>
Optional: Return a direct function pointer for single-arg functions.
When Some, compiler emits direct call (no dynamic dispatch).
Default is None (uses evaluate() with dynamic dispatch).
Auto Trait Implementations§
impl Freeze for TypeOfFunction
impl RefUnwindSafe for TypeOfFunction
impl Send for TypeOfFunction
impl Sync for TypeOfFunction
impl Unpin for TypeOfFunction
impl UnwindSafe for TypeOfFunction
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> 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 more