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