Struct kailua_syntax::ast::FuncKind [] [src]

pub struct FuncKind {
    pub args: Seq<(Option<Spanned<Name>>, Spanned<Kind>), Spanned<Kind>>,
    pub returns: Returns,
}

A function type for Kailua.

Fields

A list of argument types with optional names.

The name is purely for description and has no effect in the type. The parser will issue an error if some arguments have names and others don't or names are not distinct, but the type checker should not care.

A return type.

Trait Implementations

impl Clone for FuncKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for FuncKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for FuncKind
[src]

Formats the value using the given formatter.