This page requires javascript to work

[][src]Enum voile::syntax::core::Neutral

pub enum Neutral {
    Var(DBI),
    Ref(GI),
    Meta(MI),
    Lift(LevelTypeBox<Self>),
    Fall(LevelTypeBox<Self>),
    Axi(Axiom),
    App(Box<Self>, Vec<Val>),
    Fst(Box<Self>),
    Snd(Box<Self>),
    Proj(Box<Self>, String),
    Row(VarRecVariantsBox<Self>),
    Rec(FieldsBox<Self>),
    SplitOn(CaseSplitBox<Self>),
    OrSplit(CaseSplitBox<Self>),
}

Irreducible because of the presence of generated value.

Variants

Var(DBI)

Local variable, referred by de-bruijn index.

Ref(GI)

Global variable, referred by index. Needed for recursive definitions.

Meta(MI)

Meta variable reference.

Lift(LevelTypeBox<Self>)

Lifting self to a higher level.

Fall(LevelTypeBox<Self>)

Down-lifting self to a lower level.

Axi(Axiom)

Postulated value, aka axioms.

App(Box<Self>, Vec<Val>)

Function application, with all arguments collected (so we have easy access to application arguments).
This is convenient for meta resolution and termination check.

The "arguments" is supposed to be non-empty.

Fst(Box<Self>)

Projecting the first element of a pair.

Snd(Box<Self>)

Projecting the second element of a pair.

Proj(Box<Self>, String)

Projecting a named element of a record.

Row(VarRecVariantsBox<Self>)

Row-polymorphic types.

Rec(FieldsBox<Self>)

Record literal, with extension.

SplitOn(CaseSplitBox<Self>)

Splitting on a neutral term.

OrSplit(CaseSplitBox<Self>)

Splitting with unknown branches.

Methods

impl Neutral[src]

pub fn map_axiom(self, f: &mut impl FnMut(Axiom) -> Neutral) -> Self[src]

fn map_axiom_split(
    mapper: &mut impl FnMut(Neutral) -> Val,
    split: CaseSplit
) -> CaseSplit
[src]

Trait Implementations

impl RedEx<Val> for Neutral[src]

impl Clone for Neutral[src]

impl Eq for Neutral[src]

impl PartialEq<Neutral> for Neutral[src]

impl Display for Neutral[src]

impl Debug for Neutral[src]

impl StructuralPartialEq for Neutral[src]

impl StructuralEq for Neutral[src]

impl LiftEx for Neutral[src]

Auto Trait Implementations

impl Send for Neutral

impl Sync for Neutral

impl Unpin for Neutral

impl UnwindSafe for Neutral

impl RefUnwindSafe for Neutral

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> ToString for T where
    T: Display + ?Sized
[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> 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]