[][src]Enum voile::check::monad::TCE

pub enum TCE {
    Textual(String),
    CouldNotInfer(SyntaxInfo),
    TypeNotInGamma(SyntaxInfo),
    NotSigma(SyntaxInfoTVal),
    NotPi(SyntaxInfoTVal),
    NotSameType(TValTVal),
    NotSubtype(TValTVal),
    NotTypeAbs(SyntaxInfoAbs),
    NotTypeVal(SyntaxInfoVal),
    NotSumVal(SyntaxInfoVal),
    OverlappingVariant(SyntaxInfoString),
    MissingVariant(String),
    NotUniverseVal(SyntaxInfoVal),
    DbiOverflow(DBIDBI),
    LevelMismatch(SyntaxInfoLevelLevel),
    LookUpFailed(Ident),
    Wrapped(Box<Self>, SyntaxInfo),
}

Type-Checking Error.

Variants

Textual(String)CouldNotInfer(SyntaxInfo)TypeNotInGamma(SyntaxInfo)NotSigma(SyntaxInfoTVal)NotPi(SyntaxInfoTVal)NotSameType(TValTVal)NotSubtype(TValTVal)

Expected the first TVal to be the subtype of the second TVal.

NotTypeAbs(SyntaxInfoAbs)NotTypeVal(SyntaxInfoVal)NotSumVal(SyntaxInfoVal)OverlappingVariant(SyntaxInfoString)MissingVariant(String)NotUniverseVal(SyntaxInfoVal)DbiOverflow(DBIDBI)

Maximum DBI vs. Requested DBI

LevelMismatch(SyntaxInfoLevelLevel)

Expected the first level to be smaller than second. The String represents the expression.

LookUpFailed(Ident)

Cannot find the definition.

Wrapped(Box<Self>, SyntaxInfo)

Methods

impl TCE[src]

pub fn wrap(self, info: SyntaxInfo) -> Self[src]

Trait Implementations

impl Eq for TCE[src]

impl Clone for TCE[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<TCE> for TCE[src]

impl Display for TCE[src]

impl Debug for TCE[src]

Auto Trait Implementations

impl Send for TCE

impl Sync for TCE

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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