Enum fungi_lang::ast::Decls[][src]

pub enum Decls {
    UseAll(UseAllModuleDeclsRec),
    Doc(StringDeclsRec),
    NmTm(StringNameTmDeclsRec),
    IdxTm(StringIdxTmDeclsRec),
    Type(StringTypeDeclsRec),
    Val(StringOption<Type>, ValDeclsRec),
    Fn(StringTypeExpDeclsRec),
    End,
    NoParse(String),
}

Declaration lists of pure terms; the body of each module.

Each declaration is a definition (an alias) for a pure term of some Type, Kind or Sort.

Declaration lists are pure: There is no form for naming an unthunked, effectful expression. In particular, there is no let binding form for sequencing effects among the definitions here. In particular, the Val and Fn forms can each express recursive, effectful functions as values (thunks), but cannot express unthunked applications of these terms. Consequently, declaration lists are "pure" terms, when included within larger expressions via the UseAll form, or other future import forms.

Variants

Use all of the definitions of another module

Documentation string; from rustdoc

Define a name term

Define an index term

Define a type

Define a value

Define a function

Trait Implementations

impl Display for Decls
[src]

Formats the value using the given formatter. Read more

impl Clone for Decls
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Decls
[src]

Formats the value using the given formatter. Read more

impl Eq for Decls
[src]

impl PartialEq for Decls
[src]

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

This method tests for !=.

impl Hash for Decls
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl !Send for Decls

impl !Sync for Decls