Struct expresso::function_table::FunctionTable
source · [−]pub struct FunctionTable { /* private fields */ }
Implementations
sourceimpl FunctionTable
impl FunctionTable
pub fn new() -> Self
pub fn register<F: 'static>(&mut self, name: &str, f: F) where
F: Fn(u16, &mut VariableStack, &mut VariableStorage) -> bool,
pub fn find(
&self,
name: &str
) -> Option<&Box<dyn for<'r, 's> Fn(u16, &'r mut VariableStack, &'s mut VariableStorage) -> bool>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FunctionTable
impl !Send for FunctionTable
impl !Sync for FunctionTable
impl Unpin for FunctionTable
impl !UnwindSafe for FunctionTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more