pub struct UserFunction {
pub ident: Ident,
pub signature: Vec<Ident>,
pub body: Expr,
}
Expand description
A user-defined function implemented in Minsc
Fields§
§ident: Ident
§signature: Vec<Ident>
§body: Expr
Trait Implementations§
Source§impl Call for UserFunction
impl Call for UserFunction
Source§impl Clone for UserFunction
impl Clone for UserFunction
Source§fn clone(&self) -> UserFunction
fn clone(&self) -> UserFunction
Returns a copy 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 UserFunction
impl Debug for UserFunction
Source§impl From<UserFunction> for Function
impl From<UserFunction> for Function
Source§fn from(v: UserFunction) -> Self
fn from(v: UserFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserFunction
impl RefUnwindSafe for UserFunction
impl Send for UserFunction
impl Sync for UserFunction
impl Unpin for UserFunction
impl UnwindSafe for UserFunction
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