pub struct CustomFunctionRegistry { /* private fields */ }Expand description
自定义函数注册表
Implementations§
Source§impl CustomFunctionRegistry
impl CustomFunctionRegistry
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 CustomFunctionRegistry
impl !RefUnwindSafe for CustomFunctionRegistry
impl !Send for CustomFunctionRegistry
impl !Sync for CustomFunctionRegistry
impl Unpin for CustomFunctionRegistry
impl !UnwindSafe for CustomFunctionRegistry
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