pub struct ScalarBindInfo { /* private fields */ }Expand description
The bind-time handle passed to super::VScalar::bind: reads the call’s
argument expressions and stores per-query bind data.
Implementations§
Source§impl ScalarBindInfo
impl ScalarBindInfo
Sourcepub fn argument_count(&self) -> u64
pub fn argument_count(&self) -> u64
The number of argument expressions passed to this call.
Sourcepub fn argument(&self, index: u64) -> Option<Expression>
pub fn argument(&self, index: u64) -> Option<Expression>
The argument Expression at index, or None if out of range.
Sourcepub unsafe fn extra_info<T>(&self) -> &T
pub unsafe fn extra_info<T>(&self) -> &T
The registration-time state stored via set_extra_info, readable at bind
time (the same value ScalarFunctionInfo::state exposes during execution).
§Safety
T must match the type stored at registration time (the function’s
VScalar::State).
Sourcepub fn client_context(&self) -> Option<ClientContext<'_>>
pub fn client_context(&self) -> Option<ClientContext<'_>>
The client context of the connection binding this call, for folding
constant argument expressions (Expression::fold). None if unavailable.
Auto Trait Implementations§
impl !Send for ScalarBindInfo
impl !Sync for ScalarBindInfo
impl Freeze for ScalarBindInfo
impl RefUnwindSafe for ScalarBindInfo
impl Unpin for ScalarBindInfo
impl UnsafeUnpin for ScalarBindInfo
impl UnwindSafe for ScalarBindInfo
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