Skip to main content

TableFunctionInfo

Struct TableFunctionInfo 

Source
pub struct TableFunctionInfo<V: VTab> { /* private fields */ }
Expand description

An interface to store and retrieve data during the table function’s execution stage.

Implementations§

Source§

impl<V: VTab> TableFunctionInfo<V>

Source

pub fn bind_data(&self) -> &V::BindData

The bind data produced by VTab::bind for this call. Read-only.

Source

pub fn init_data(&self) -> &V::InitData

The init data produced by VTab::init for this call. Shared across every worker thread executing this query, so any interior mutation must be synchronized.

Source

pub fn local_init_data<T>(&self) -> Option<&T>

The data produced by VTabLocalInit::local_init for this worker thread, if the function registered a local-init callback. Returns None if no local-init callback was registered.

§Safety

The caller must request the same T that was stored by the local-init callback; there is no runtime type check.

Source

pub fn extra_info<T>(&self) -> Option<&T>

The registration-time “extra info”, if any — see BindInfo::extra_info.

§Safety

The caller must request the same T that was stored at registration time; there is no runtime type check.

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.