pub struct FunctionLibrary { /* private fields */ }Expand description
函数库
Implementations§
Source§impl FunctionLibrary
impl FunctionLibrary
Sourcepub fn register(&mut self, function: Box<dyn FormulaFunction>)
pub fn register(&mut self, function: Box<dyn FormulaFunction>)
注册函数
Sourcepub fn call_function(
&self,
name: &str,
args: &[FormulaValue],
) -> Result<FormulaValue>
pub fn call_function( &self, name: &str, args: &[FormulaValue], ) -> Result<FormulaValue>
调用函数
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionLibrary
impl !Send for FunctionLibrary
impl !Sync for FunctionLibrary
impl !UnwindSafe for FunctionLibrary
impl Freeze for FunctionLibrary
impl Unpin for FunctionLibrary
impl UnsafeUnpin for FunctionLibrary
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