pub enum FunctionBody {
Pointer(fn(_: &mut Context, _: &Registry)),
Closure(Arc<dyn Fn(&mut Context, &Registry) + Send + Sync>),
}
Variants§
Pointer(fn(_: &mut Context, _: &Registry))
Closure(Arc<dyn Fn(&mut Context, &Registry) + Send + Sync>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionBody
impl !RefUnwindSafe for FunctionBody
impl Send for FunctionBody
impl Sync for FunctionBody
impl Unpin for FunctionBody
impl !UnwindSafe for FunctionBody
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