pub struct RandomFunc;Trait Implementations§
Source§impl ScalarFunction for RandomFunc
impl ScalarFunction for RandomFunc
Source§fn invoke(&self, _args: &[SqliteValue]) -> Result<SqliteValue>
fn invoke(&self, _args: &[SqliteValue]) -> Result<SqliteValue>
Execute this function on the given arguments.
Source§fn is_deterministic(&self) -> bool
fn is_deterministic(&self) -> bool
Whether this function is deterministic (same inputs → same output). Read more
Source§fn invoke_with_arg_subtypes(
&self,
args: &[SqliteValue],
_arg_subtypes: &[u32],
) -> Result<SqliteValue>
fn invoke_with_arg_subtypes( &self, args: &[SqliteValue], _arg_subtypes: &[u32], ) -> Result<SqliteValue>
Execute this function with knowledge of each argument’s value subtype
(e.g.
JSON_SUBTYPE for values returned by JSON functions). 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 max_args(&self) -> Option<i32>
fn max_args(&self) -> Option<i32>
Maximum accepted argument count, or
None for unbounded variadic
functions.Source§fn accepts_arg_count(&self, num_args: i32) -> bool
fn accepts_arg_count(&self, num_args: i32) -> bool
Return whether this function accepts
num_args arguments.Auto Trait Implementations§
impl Freeze for RandomFunc
impl RefUnwindSafe for RandomFunc
impl Send for RandomFunc
impl Sync for RandomFunc
impl Unpin for RandomFunc
impl UnsafeUnpin for RandomFunc
impl UnwindSafe for RandomFunc
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