pub struct FunctionRegistry { /* private fields */ }Implementations§
Source§impl FunctionRegistry
impl FunctionRegistry
pub fn new() -> Self
pub fn with_builtins() -> Self
pub fn register(&mut self, func: UniversalFunction) -> Result<(), WaymarkError>
pub fn find(&self, key: &str) -> Option<&UniversalFunction>
pub fn by_category(&self, cat: FunctionCategory) -> Vec<&UniversalFunction>
pub fn by_scope(&self, scope: FunctionScope) -> Vec<&UniversalFunction>
pub fn validate_key(&self, key: &str) -> Result<(), WaymarkError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
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 · 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 FunctionRegistry
impl Debug for FunctionRegistry
Source§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 UnsafeUnpin for FunctionRegistry
impl UnwindSafe for FunctionRegistry
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