[][src]Enum artichoke_backend::ArtichokeError

pub enum ArtichokeError {
    ArgSpec,
    ConvertToRuby {
        from: Rust,
        to: Ruby,
    },
    ConvertToRust {
        from: Ruby,
        to: Rust,
    },
    Exec(String),
    New,
    NotDefined(String),
    TooManyArgs {
        given: usize,
        max: usize,
    },
    Uninitialized,
    UnreachableValue,
    Vfs(Error),
}

Errors returned by Artichoke interpreters.

Variants

ArgSpec

Failed to create an argspec.

ConvertToRuby

Failed to convert from a Rust type to a Value.

Fields of ConvertToRuby

from: Rust

Source type of conversion.

to: Ruby

Destination type of conversion.

ConvertToRust

Failed to convert from a Value to a Rust type.

Fields of ConvertToRust

from: Ruby

Source type of conversion.

to: Rust

Destination type of conversion.

Exec(String)

Exception raised during eval.

See Eval.

New

Unable to initalize interpreter.

NotDefined(String)

Class or module with this name is not defined in the artichoke VM.

TooManyArgs

Arg count exceeds maximum allowed by the VM.

Fields of TooManyArgs

given: usize

Number of arguments supplied.

max: usize

Maximum number of arguments supported.

Uninitialized

Attempted to use an uninitialized interpreter.

UnreachableValue

Eval or funcall returned an interpreter-internal value.

Vfs(Error)

[io::Error] when interacting with virtual filesystem.

See artichoke_vfs.

Trait Implementations

impl Debug for ArtichokeError[src]

impl Error for ArtichokeError[src]

impl Eq for ArtichokeError[src]

impl Display for ArtichokeError[src]

impl PartialEq<ArtichokeError> for ArtichokeError[src]

Auto Trait Implementations

impl Send for ArtichokeError

impl Unpin for ArtichokeError

impl Sync for ArtichokeError

impl !UnwindSafe for ArtichokeError

impl !RefUnwindSafe for ArtichokeError

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

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]

impl<T> Any for T where
    T: Any + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,