Struct bitsy_lang::ast::FnDef
source · pub struct FnDef {
pub name: Ident,
pub type_args: Vec<(Ident, Kind)>,
pub args: Vec<(Ident, Type)>,
pub ret: Type,
pub body: Expr,
pub span: Span,
}
Expand description
A user-defined function.
Fields§
§name: Ident
§type_args: Vec<(Ident, Kind)>
§args: Vec<(Ident, Type)>
§ret: Type
§body: Expr
§span: Span
Trait Implementations§
Auto Trait Implementations§
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