[][src]Enum artichoke_backend::ArtichokeError

pub enum ArtichokeError {
    ConvertToRuby {
        from: Rust,
        to: Ruby,
    ConvertToRust {
        from: Ruby,
        to: Rust,
    NotDefined(Cow<'static, str>),
    TooManyArgs {
        given: usize,
        max: usize,
    UninitializedValue(&'static str),

Errors returned by Artichoke interpreters.



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.


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.


Constant name is invalid for the VM backend.

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


Unable to initalize interpreter.

NotDefined(Cow<'static, str>)

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


Arg count exceeds maximum allowed by the VM.

Fields of TooManyArgs

given: usize

Number of arguments supplied.

max: usize

Maximum number of arguments supported.


Attempted to use an uninitialized interpreter.

UninitializedValue(&'static str)

Attempted to extract Rust object from uninitialized Value.


Eval or funcall returned an interpreter-internal value.


[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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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