This page requires javascript to work

[][src]Enum minitt::check::tcm::TCE

pub enum TCE {
    Textual(String),
    UpdateGammaFailed(Pattern),
    CannotInfer(Expression),
    UnresolvedName(String),
    InvalidConstructor(String),
    MissingCase(String),
    UnexpectedCases(String),
    Unreachable(&'static stru32u32),
    WantSumBut(Either<Value, Expression>),
    DuplicateBranch(String),
    WantSigmaBut(Value),
    WantPiBut(ValueExpression),
    TypeMismatch(ValueValue),
    NotTypeType(Value),
    LevelMismatch(LevelLevel),
    ReadBackTypeMismatch(NormalExpressionNormalExpression),
    Located(Box<TCE>, Pattern),
}

Type-Checking Error.

Variants

Textual(String)
UpdateGammaFailed(Pattern)
CannotInfer(Expression)
UnresolvedName(String)
InvalidConstructor(String)
MissingCase(String)
UnexpectedCases(String)
Unreachable(&'static stru32u32)

Reaching somewhere that is not expected to reach.

WantSumBut(Either<Value, Expression>)
DuplicateBranch(String)
WantSigmaBut(Value)
WantPiBut(ValueExpression)

We can get the argument of application here, to better report error.

TypeMismatch(ValueValue)

Actually first value, expected second value.

NotTypeType(Value)

Want a type's type, but unfortunately it's not.

LevelMismatch(LevelLevel)

Actually first level, expected second level.

ReadBackTypeMismatch(NormalExpressionNormalExpression)

First argument is inferred value, second is expected.

Located(Box<TCE>, Pattern)

Implementations

impl TCE[src]

pub fn default_error<T>(str: String) -> TCM<T>[src]

Default TCE

Trait Implementations

impl Clone for TCE[src]

impl Debug for TCE[src]

impl Display 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.