[][src]Enum artichoke_backend::ArtichokeError

pub enum ArtichokeError {
    ConvertToRuby {
        from: Rust,
        to: Ruby,
    },
    ConvertToRust {
        from: Ruby,
        to: Rust,
    },
    InvalidConstantName,
    New,
    NotDefined(Cow<'static, str>),
    TooManyArgs {
        given: usize,
        max: usize,
    },
    Uninitialized,
    UninitializedValue(&'static str),
    UnreachableValue,
    Vfs(Error),
}

Errors returned by Artichoke interpreters.

Variants

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.

InvalidConstantName

Constant name is invalid for the VM backend.

For example, if the name contains a NUL byte, or is invalid UTF-8.

New

Unable to initalize interpreter.

NotDefined(Cow<'static, str>)

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.

UninitializedValue(&'static str)

Attempted to extract Rust object from uninitialized Value.

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 Display for ArtichokeError[src]

impl Eq for ArtichokeError[src]

impl Error for ArtichokeError[src]

impl From<ArtichokeError> for BootError[src]

impl PartialEq<ArtichokeError> for ArtichokeError[src]

Auto Trait Implementations

impl !RefUnwindSafe for ArtichokeError

impl Send for ArtichokeError

impl Sync for ArtichokeError

impl Unpin for ArtichokeError

impl !UnwindSafe for ArtichokeError

Blanket Implementations

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

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

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.

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