pub struct JsonArrayLengthFunction;Expand description
JSON_ARRAY_LENGTH function - returns the length of a JSON array
Trait Implementations§
Source§impl Default for JsonArrayLengthFunction
impl Default for JsonArrayLengthFunction
Source§fn default() -> JsonArrayLengthFunction
fn default() -> JsonArrayLengthFunction
Returns the “default value” for a type. Read more
Source§impl ScalarFunction for JsonArrayLengthFunction
impl ScalarFunction for JsonArrayLengthFunction
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 JsonArrayLengthFunction
impl RefUnwindSafe for JsonArrayLengthFunction
impl Send for JsonArrayLengthFunction
impl Sync for JsonArrayLengthFunction
impl Unpin for JsonArrayLengthFunction
impl UnsafeUnpin for JsonArrayLengthFunction
impl UnwindSafe for JsonArrayLengthFunction
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