pub struct FnDef {
pub name: String,
pub args: Vec<(String, Type)>,
pub ret: Type,
pub body: Arc<Expr>,
}
Expand description
A user-defined fn
function.
Fields§
§name: String
§args: Vec<(String, Type)>
§ret: Type
§body: Arc<Expr>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnDef
impl RefUnwindSafe for FnDef
impl Send for FnDef
impl Sync for FnDef
impl Unpin for FnDef
impl UnwindSafe for FnDef
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