Enum fungi_lang::ast::Val [] [src]

pub enum Val {
    Var(Var),
    Unit,
    Pair(ValRecValRec),
    Inj1(ValRec),
    Inj2(ValRec),
    Roll(ValRec),
    Name(Name),
    NameFn(NameTm),
    Anno(ValRecType),
    ThunkAnon(ExpRec),
    Bool(bool),
    Nat(usize),
    Str(String),
    NoParse(String),
}

Value terms

Variants

Primitive (Rust) bool, injected into Val type

Primitive (Rust) usize, injected into Val type

Primitive (Rust) String, injected into Val type

Trait Implementations

impl Clone for Val
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Val
[src]

[src]

Formats the value using the given formatter.

impl Eq for Val
[src]

impl PartialEq for Val
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Val
[src]

[src]

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

1.3.0
[src]

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