pub struct Function { /* private fields */ }Expand description
A Muse function ready for execution.
Implementations§
source§impl Function
impl Function
sourcepub fn new(name: impl IntoOptionSymbol) -> Self
pub fn new(name: impl IntoOptionSymbol) -> Self
Returns a function with the given name and no bodies.
sourcepub fn insert_arity(&mut self, arity: impl Into<Arity>, body: Code)
pub fn insert_arity(&mut self, arity: impl Into<Arity>, body: Code)
Inserts body to be executed when this function is invoked with arity
number of arguments.
Trait Implementations§
source§impl CustomType for Function
impl CustomType for Function
impl ContainsNoRefs for Function
Auto Trait Implementations§
impl Freeze for Function
impl !RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)