pub struct FunctionRegistry {
pub native_functions: NativeFunctionMap,
pub expression_functions: ExpressionFunctionMap,
}Expand description
Registry for different types of functions available in an evaluation context.
This struct holds three types of functions:
- Native functions: Rust functions that can be called from expressions
- Expression functions: Functions defined using expression strings
- User functions: Functions defined by the user with custom behavior
This is an internal implementation detail and users typically don’t interact with it directly.
Fields§
§native_functions: NativeFunctionMapNative functions implemented in Rust code
expression_functions: ExpressionFunctionMapFunctions defined using expression strings
Trait Implementations§
Source§impl Clone for FunctionRegistry
impl Clone for FunctionRegistry
Source§fn clone(&self) -> FunctionRegistry
fn clone(&self) -> FunctionRegistry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for FunctionRegistry
impl Default for FunctionRegistry
Source§fn default() -> FunctionRegistry
fn default() -> FunctionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionRegistry
impl !RefUnwindSafe for FunctionRegistry
impl !Send for FunctionRegistry
impl !Sync for FunctionRegistry
impl Unpin for FunctionRegistry
impl !UnwindSafe for FunctionRegistry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)