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