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

pub enum TCE {
    Textual(String),
    CannotInfer(LocAbs),
    CannotUnify(ValVal),
    NotSigma(LocTVal),
    NotPi(LocTVal),
    NotSubtype(TValTVal),
    NotTypeAbs(LocAbs),
    NotTypeVal(LocVal),
    NotRowType(VarRecLocVal),
    NotEmpty(LocVal),
    NotRecVal(LocVal),
    NotUniverseVal(LocVal),
    TypeNotInGamma(Loc),
    OverlappingVariant(LocString),
    DuplicateField(LocString),
    UnexpectedVariant(LocString),
    MissingVariant(VarRecString),
    DbiOverflow(DBIDBI),
    LevelMismatch(LocLevelLevel),
    LookUpFailed(Ident),
    Wrapped(Box<Self>, Loc),
    ReDefine(LocLoc),
    MetaRecursion(MI),
    MetaWithNonVar(Loc),
    MetaUnsolved(MI),
}

Type-Checking Error.

Variants

Textual(String)
CannotInfer(LocAbs)
CannotUnify(ValVal)
NotSigma(LocTVal)
NotPi(LocTVal)
NotSubtype(TValTVal)

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

NotTypeAbs(LocAbs)
NotTypeVal(LocVal)
NotRowType(VarRecLocVal)
NotEmpty(LocVal)
NotRecVal(LocVal)
NotUniverseVal(LocVal)
TypeNotInGamma(Loc)
OverlappingVariant(LocString)
DuplicateField(LocString)
UnexpectedVariant(LocString)
MissingVariant(VarRecString)
DbiOverflow(DBIDBI)

Maximum DBI vs. Requested DBI

LevelMismatch(LocLevelLevel)

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

LookUpFailed(Ident)

Cannot find the definition.

Wrapped(Box<Self>, Loc)
ReDefine(LocLoc)

The definition at the first Loc will hide the definition at the second Loc.

MetaRecursion(MI)

Recursive metas are disallowed.

MetaWithNonVar(Loc)

Meta solution should be passed with bound variables only.

MetaUnsolved(MI)

Unsolved metas are reported as errors.

Implementations

impl TCE[src]

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

pub fn duplicate_field(ident: Ident) -> Self[src]

Trait Implementations

impl Clone for TCE[src]

impl Debug for TCE[src]

impl Display for TCE[src]

impl Eq for TCE[src]

impl PartialEq<TCE> for TCE[src]

impl StructuralEq for TCE[src]

impl StructuralPartialEq for TCE[src]

Auto Trait Implementations

impl RefUnwindSafe for TCE

impl Send for TCE

impl Sync for TCE

impl Unpin for TCE

impl UnwindSafe for TCE

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.