pub struct Function<'a> {
pub name: Loc<&'a str>,
pub parameters: Vec<(Loc<&'a str>, Loc<TypeAnnotation>)>,
pub return_type: Option<Loc<TypeAnnotation>>,
pub body: Vec<Loc<FunctionCode<'a>>>,
}Fields§
§name: Loc<&'a str>§parameters: Vec<(Loc<&'a str>, Loc<TypeAnnotation>)>§return_type: Option<Loc<TypeAnnotation>>§body: Vec<Loc<FunctionCode<'a>>>Auto Trait Implementations§
impl<'a> Freeze for Function<'a>
impl<'a> RefUnwindSafe for Function<'a>
impl<'a> Send for Function<'a>
impl<'a> Sync for Function<'a>
impl<'a> Unpin for Function<'a>
impl<'a> UnwindSafe for Function<'a>
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