[][src]Struct dora_parser::ast::Function

pub struct Function {
    pub id: NodeId,
    pub name: Name,
    pub pos: Position,
    pub span: Span,
    pub method: bool,
    pub has_open: bool,
    pub has_override: bool,
    pub has_final: bool,
    pub has_optimize: bool,
    pub is_pub: bool,
    pub is_static: bool,
    pub is_abstract: bool,
    pub internal: bool,
    pub is_constructor: bool,
    pub params: Vec<Param>,
    pub throws: bool,
    pub return_type: Option<Type>,
    pub block: Option<Box<Stmt>>,
    pub type_params: Option<Vec<TypeParam>>,
}

Fields

id: NodeIdname: Namepos: Positionspan: Spanmethod: boolhas_open: boolhas_override: boolhas_final: boolhas_optimize: boolis_pub: boolis_static: boolis_abstract: boolinternal: boolis_constructor: boolparams: Vec<Param>throws: boolreturn_type: Option<Type>block: Option<Box<Stmt>>type_params: Option<Vec<TypeParam>>

Methods

impl Function[src]

pub fn block(&self) -> &Stmt[src]

Trait Implementations

impl Clone for Function[src]

impl Debug for Function[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T