pub struct FunctionInfo(/* private fields */);
Expand description
An interface to store and retrieve data during the function execution stage
Implementations§
Source§impl FunctionInfo
impl FunctionInfo
Sourcepub fn get_bind_data<T>(&self) -> *mut T
pub fn get_bind_data<T>(&self) -> *mut T
Gets the bind data set by BindInfo::set_bind_data
during the bind.
Note that the bind data should be considered as read-only. For tracking state, use the init data instead.
§Arguments
returns
: The bind data object
Sourcepub fn get_init_data<T>(&self) -> *mut T
pub fn get_init_data<T>(&self) -> *mut T
Gets the init data set by InitInfo::set_init_data
during the init.
§Arguments
returns
: The init data object
Sourcepub fn get_extra_info<T>(&self) -> *mut T
pub fn get_extra_info<T>(&self) -> *mut T
Retrieves the extra info of the function as set in TableFunction::set_extra_info
§Arguments
returns
: The extra info
Sourcepub fn get_local_init_data<T>(&self) -> *mut T
pub fn get_local_init_data<T>(&self) -> *mut T
Gets the thread-local init data set by InitInfo::set_init_data
during the local_init.
§Arguments
returns
: The init data object
Trait Implementations§
Source§impl Debug for FunctionInfo
impl Debug for FunctionInfo
Source§impl From<*mut c_void> for FunctionInfo
impl From<*mut c_void> for FunctionInfo
Source§fn from(ptr: duckdb_function_info) -> Self
fn from(ptr: duckdb_function_info) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl !Send for FunctionInfo
impl !Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnwindSafe for FunctionInfo
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