pub struct SqliteFunctionCtx { /* private fields */ }
Available on crate feature
sqlite
only.Implementations§
Source§impl SqliteFunctionCtx
impl SqliteFunctionCtx
Sourcepub fn get_arg<'q, T: Decode<'q, Sqlite>>(&'q self, index: usize) -> T
pub fn get_arg<'q, T: Decode<'q, Sqlite>>(&'q self, index: usize) -> T
Returns the argument at the given index, or panics if the argument number is out of bounds or the argument cannot be decoded as the requested type.
Sourcepub fn try_get_arg<'q, T: Decode<'q, Sqlite>>(
&'q self,
index: usize,
) -> Result<T, BoxDynError>
pub fn try_get_arg<'q, T: Decode<'q, Sqlite>>( &'q self, index: usize, ) -> Result<T, BoxDynError>
Returns the argument at the given index, or None
if the argument number is out of bounds or
the argument cannot be decoded as the requested type.
pub fn set_result<'q, R: Encode<'q, Sqlite>>(&self, result: R)
pub fn set_error(&self, error_str: &str)
Auto Trait Implementations§
impl Freeze for SqliteFunctionCtx
impl RefUnwindSafe for SqliteFunctionCtx
impl !Send for SqliteFunctionCtx
impl !Sync for SqliteFunctionCtx
impl Unpin for SqliteFunctionCtx
impl UnwindSafe for SqliteFunctionCtx
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