pub struct MfFunctionRegistry { /* private fields */ }
Expand description
自定义函数注册表
Implementations§
Source§impl MfFunctionRegistry
impl MfFunctionRegistry
Sourcepub fn get_definition(name: &str) -> Option<Rc<dyn FunctionDefinition>>
pub fn get_definition(name: &str) -> Option<Rc<dyn FunctionDefinition>>
获取函数定义
Sourcepub fn is_registered(name: &str) -> bool
pub fn is_registered(name: &str) -> bool
检查函数是否已注册
Sourcepub fn has_current_state() -> bool
pub fn has_current_state() -> bool
检查当前是否有活跃的State
Sourcepub fn clear_current_state()
pub fn clear_current_state()
清理当前State上下文
Sourcepub fn list_functions() -> Vec<String>
pub fn list_functions() -> Vec<String>
列出所有已注册的函数
Auto Trait Implementations§
impl Freeze for MfFunctionRegistry
impl !RefUnwindSafe for MfFunctionRegistry
impl !Send for MfFunctionRegistry
impl !Sync for MfFunctionRegistry
impl Unpin for MfFunctionRegistry
impl !UnwindSafe for MfFunctionRegistry
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