Struct garden_lang_parser::ast::FunInfo
source · pub struct FunInfo {
pub src_string: SourceString,
pub doc_comment: Option<String>,
pub name: Option<Symbol>,
pub type_params: Vec<TypeSymbol>,
pub params: Vec<SymbolWithHint>,
pub return_hint: Option<TypeHint>,
pub body: Block,
}Fields§
§src_string: SourceString§doc_comment: Option<String>§name: Option<Symbol>The name of the function. This is None for closures.
type_params: Vec<TypeSymbol>§params: Vec<SymbolWithHint>§return_hint: Option<TypeHint>§body: BlockTrait Implementations§
impl Eq for FunInfo
impl StructuralPartialEq for FunInfo
Auto Trait Implementations§
impl Freeze for FunInfo
impl RefUnwindSafe for FunInfo
impl Send for FunInfo
impl Sync for FunInfo
impl Unpin for FunInfo
impl UnwindSafe for FunInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)