Enum cleaver::analysis::types::TypeError [] [src]

pub enum TypeError<'a> {
    TypeMismatch {
        expr: &'a Node<Expression>,
        expected: Type,
        actual: Type,
        filename: String,
    },
    WrongArgumentCount {
        call: &'a Node<Expression>,
        expected: usize,
        actual: usize,
        filename: String,
    },
    UnsupportedOperator {
        expr: &'a Node<Expression>,
        op: Op,
        type_: Type,
        filename: String,
    },
    InvalidReturnValue {
        stmt: &'a Node<Statement>,
        filename: String,
    },
}

Variants

Fields

Fields

Fields

Fields

Trait Implementations

impl<'a> PartialEq for TypeError<'a>
[src]

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

This method tests for !=.

impl<'a> Debug for TypeError<'a>
[src]

Formats the value using the given formatter.

impl<'a> Display for TypeError<'a>
[src]

Formats the value using the given formatter.

impl<'a> Error for TypeError<'a>
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more