[][src]Struct zypo_parser::Function

pub struct Function {
    pub ident: String,
    pub params: Vec<Parameter>,
    pub body: Vec<StatementNode>,
    pub return_type: VarType,
}

A function statement, the basis for the whole language. An example of a function statement would be the following inside of Zypo itself:

fun number_adder(first_num: int, second_num: int) -> int {
    // --snip--
}

Fields

ident: Stringparams: Vec<Parameter>body: Vec<StatementNode>return_type: VarType

Trait Implementations

impl PartialEq<Function> 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, 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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