pub struct SubstrFunction;Expand description
SUBSTR function - alias for SUBSTRING for compatibility
Trait Implementations§
Source§impl Default for SubstrFunction
impl Default for SubstrFunction
Source§fn default() -> SubstrFunction
fn default() -> SubstrFunction
Returns the “default value” for a type. Read more
Source§impl ScalarFunction for SubstrFunction
impl ScalarFunction for SubstrFunction
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 SubstrFunction
impl RefUnwindSafe for SubstrFunction
impl Send for SubstrFunction
impl Sync for SubstrFunction
impl Unpin for SubstrFunction
impl UnwindSafe for SubstrFunction
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