Skip to main content

ScalarBindInfo

Struct ScalarBindInfo 

Source
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

Source

pub fn argument_count(&self) -> u64

The number of argument expressions passed to this call.

Source

pub fn argument(&self, index: u64) -> Option<Expression>

The argument Expression at index, or None if out of range.

Source

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).

Source

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.