pub struct HostFunctions { /* private fields */ }Expand description
Host function registry used by optimized execution paths.
register_call: generic JSON argument callbacks.register_generate_i64andregister_map_i64: typed callbacks used by external fast plans to avoid JSON boxing overhead.
Implementations§
Source§impl HostFunctions
impl HostFunctions
Sourcepub fn register_call(&mut self, name: impl Into<String>, func: HostCallFn)
pub fn register_call(&mut self, name: impl Into<String>, func: HostCallFn)
Register a generic host callback for call steps.
Sourcepub fn register_generate_i64(
&mut self,
name: impl Into<String>,
func: HostGenerateI64Fn,
)
pub fn register_generate_i64( &mut self, name: impl Into<String>, func: HostGenerateI64Fn, )
Register typed generator callback used by external fast-path plans.
Sourcepub fn register_map_i64(&mut self, name: impl Into<String>, func: HostMapI64Fn)
pub fn register_map_i64(&mut self, name: impl Into<String>, func: HostMapI64Fn)
Register typed mapper callback used by external fast-path plans.
Trait Implementations§
Source§impl Clone for HostFunctions
impl Clone for HostFunctions
Source§fn clone(&self) -> HostFunctions
fn clone(&self) -> HostFunctions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostFunctions
impl Debug for HostFunctions
Source§impl Default for HostFunctions
impl Default for HostFunctions
Source§fn default() -> HostFunctions
fn default() -> HostFunctions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HostFunctions
impl RefUnwindSafe for HostFunctions
impl Send for HostFunctions
impl Sync for HostFunctions
impl Unpin for HostFunctions
impl UnsafeUnpin for HostFunctions
impl UnwindSafe for HostFunctions
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