[][src]Enum inkling::error::variable::VariableErrorKind

pub enum VariableErrorKind {
    DividedByZero {
        other: Variable,
        operator: char,
    },
    InvalidComparison {
        other: Variable,
        comparison: Ordering,
    },
    InvalidOperation {
        other: Variable,
        operator: char,
    },
    NonMatchingAssignment {
        other: Variable,
    },
}

Error variant for variable type errors.

Variants

DividedByZero

Divided with or took the remainer from 0.

Fields of DividedByZero

other: Variable

Zero-valued variable in the operation.

operator: char

Character representation of the operation that caused the error (/, %).

InvalidComparison

Two variables could not be compared to each other like this.

Fields of InvalidComparison

other: Variable

Other variable in the comparison.

comparison: Ordering

Type of comparison betweeen variable and other.

InvalidOperation

Tried to operate on the variable with an operation that is not allowed for it.

Fields of InvalidOperation

other: Variable

Other variable in the operation.

operator: char

Character representation of operation (+, -, *, /, %).

NonMatchingAssignment

A new variable type was attempted to be assigned to the current variable.

Fields of NonMatchingAssignment

other: Variable

Variable that was to be assigned but has non-matching type.

Trait Implementations

impl Clone for VariableErrorKind[src]

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

Performs copy-assignment from source. Read more

impl Debug for VariableErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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