[][src]Enum mtots_core::EvalError

pub enum EvalError {
    UninitializedValue,
    ArgumentError(ArgumentError),
    NotCallable(Value),
    NoSuchMethod(RcStrRc<Class>),
    MakeFunctionInvalidCellsValue,
    CompileError(CompileErrorKind),
    LexError(LexErrorKind),
    ParseError(ParseErrorKind),
    IOError(Error),
    NotUnicode(OsString),
    ModuleNotFound,
    YieldOutsideGenerator,
    GeneratorStartedWithNonNilValue,
    GeneratorResumeAfterDone,
    UnpackSize {
        expected: usize,
        but_got: usize,
    },
    ExpectedIterable(ValueKind),
    ExpectedIterator(ValueKind),
    NoSuchAttribute(SymbolRcStr),
    CouldNotAssignAttribute(Symbol),
    OperationNotSupportedForKinds(Operation, Vec<ValueKind>),
}

Variants

UninitializedValue
ArgumentError(ArgumentError)
NotCallable(Value)
NoSuchMethod(RcStrRc<Class>)
MakeFunctionInvalidCellsValue
CompileError(CompileErrorKind)
LexError(LexErrorKind)
ParseError(ParseErrorKind)
IOError(Error)
NotUnicode(OsString)
ModuleNotFound
YieldOutsideGenerator
GeneratorStartedWithNonNilValue
GeneratorResumeAfterDone
UnpackSize

Fields of UnpackSize

expected: usizebut_got: usize
ExpectedIterable(ValueKind)
ExpectedIterator(ValueKind)
NoSuchAttribute(SymbolRcStr)
CouldNotAssignAttribute(Symbol)
OperationNotSupportedForKinds(Operation, Vec<ValueKind>)

Implementations

impl EvalError[src]

pub fn tag(&self) -> &'static str[src]

Trait Implementations

impl Debug for EvalError[src]

impl Display for EvalError[src]

impl From<Error> for EvalError[src]

Auto Trait Implementations

impl !RefUnwindSafe for EvalError

impl !Send for EvalError

impl !Sync for EvalError

impl Unpin for EvalError

impl !UnwindSafe for EvalError

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