[][src]Enum rust_forth_compiler::ForthError

pub enum ForthError {
    UnknownError,
    UnknownToken(String),
    PopOfEmptyStack,
    InvalidSyntax(String),
    MissingSemicolonAfterColon,
    Io(Error),
    UnhandledTrap,
    RanOutOfGas,
}

This Enum lists the errors that the Forth Interpreter might return

Variants

UnknownErrorUnknownToken(String)PopOfEmptyStackInvalidSyntax(String)MissingSemicolonAfterColonIo(Error)UnhandledTrapRanOutOfGas

Trait Implementations

impl From<Error> for ForthError[src]

Convert io::Errors to a ForthError so our Interpreter functions can return a single Error type.

impl From<StackMachineError> for ForthError[src]

Convert StackMachineError to a ForthError so our Interpreter functions can return a single Error type.

impl From<ForthError> for i32[src]

Helper to convert ForthError codes to numeric codes for exit()

impl Debug for ForthError[src]

Auto Trait Implementations

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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