pub struct DecimalSubFunc;Expand description
decimal_sub(X, Y) — exact decimal subtraction.
Trait Implementations§
Source§impl ScalarFunction for DecimalSubFunc
impl ScalarFunction for DecimalSubFunc
Source§fn invoke(&self, args: &[SqliteValue]) -> Result<SqliteValue>
fn invoke(&self, args: &[SqliteValue]) -> Result<SqliteValue>
Execute this function on the given arguments.
Source§fn invoke_with_arg_subtypes(
&self,
args: &[SqliteValue],
_arg_subtypes: &[u32],
) -> Result<SqliteValue, FrankenError>
fn invoke_with_arg_subtypes( &self, args: &[SqliteValue], _arg_subtypes: &[u32], ) -> Result<SqliteValue, FrankenError>
Execute this function with knowledge of each argument’s value subtype
(e.g.
JSON_SUBTYPE for values returned by JSON functions). Read moreSource§fn consumes_argument_collation(&self) -> bool
fn consumes_argument_collation(&self) -> bool
Whether this function consumes the SQL collation selected from its
arguments (for example built-in
nullif, scalar min, and scalar
max). Custom functions default to collation-opaque semantics.Source§fn invoke_with_collation(
&self,
args: &[SqliteValue],
_collation: Option<&dyn CollationFunction>,
) -> Result<SqliteValue, FrankenError>
fn invoke_with_collation( &self, args: &[SqliteValue], _collation: Option<&dyn CollationFunction>, ) -> Result<SqliteValue, FrankenError>
Invoke with the selected SQL collation, when this implementation
advertises
Self::consumes_argument_collation. Read moreSource§fn result_subtype(&self) -> Option<u32>
fn result_subtype(&self) -> Option<u32>
The subtype this function tags onto its result value, if any. Read more
Source§fn is_deterministic(&self) -> bool
fn is_deterministic(&self) -> bool
Whether this function is deterministic (same inputs → same output). Read more
Source§fn max_args(&self) -> Option<i32>
fn max_args(&self) -> Option<i32>
Maximum accepted argument count for a variadic function. Read more
Source§fn arity(&self) -> FunctionArity
fn arity(&self) -> FunctionArity
Return the complete SQL-visible arity contract in one metadata call. Read more
Auto Trait Implementations§
impl Freeze for DecimalSubFunc
impl RefUnwindSafe for DecimalSubFunc
impl Send for DecimalSubFunc
impl Sync for DecimalSubFunc
impl Unpin for DecimalSubFunc
impl UnsafeUnpin for DecimalSubFunc
impl UnwindSafe for DecimalSubFunc
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