Expand description

A “prelude” for users of the extn module in the artichoke-backend crate.

This prelude is similar to the standard library’s prelude in that you’ll almost always want to import its entire contents, but unlike the standard library’s prelude, you’ll have to do so manually:

use artichoke_backend::extn::prelude::*;

This prelude is most useful to include when developing functionality in the Artichoke standard library.

The prelude may grow over time as additional items see ubiquitous use.


pub use artichoke_core::class_registry::ClassRegistry as _;
pub use artichoke_core::constant::DefineConstant as _;
pub use artichoke_core::debug::Debug as _;
pub use artichoke_core::eval::Eval as _;
pub use artichoke_core::globals::Globals as _;
pub use artichoke_core::intern::Intern as _;
pub use artichoke_core::io::Io as _;
pub use artichoke_core::load::LoadSources as _;
pub use artichoke_core::module_registry::ModuleRegistry as _;
pub use artichoke_core::parser::Parser as _;
pub use artichoke_core::prng::Prng as _;
pub use artichoke_core::regexp::Regexp as _;
pub use artichoke_core::value::Value as _;
pub use artichoke_core::warn::Warn as _;
pub use scolapasta_aref as aref;
pub use crate::block::Block;
pub use crate::class;
pub use crate::def;
pub use crate::def::EnclosingRubyScope;
pub use crate::def::NotDefinedError;
pub use crate::error;
pub use crate::error::Error;
pub use crate::error::RubyException;
pub use crate::ffi::InterpreterExtractError;
pub use crate::gc::MrbGarbageCollection as _;
pub use crate::module;
pub use crate::sys;
pub use crate::value::Value;


Ruby ArgumentError error type.
Interpreter instance.
Ruby EOFError error type.
Ruby EncodingError error type.
Ruby Exception error type.
Ruby fatal error type.
Ruby FiberError error type.
Ruby FloatDomainError error type.
Ruby FrozenError error type.
Interpreter guard that prepares an Artichoke to re-enter an FFI boundary.
Ruby IOError error type.
Ruby IndexError error type.
Ruby Interrupt error type.
Ruby KeyError error type.
Ruby LoadError error type.
Ruby LocalJumpError error type.
Ruby NameError error type.
Ruby NoMemoryError error type.
Ruby NoMethodError error type.
Ruby NotImplementedError error type.
Ruby RangeError error type.
Ruby RegexpError error type.
Ruby RuntimeError error type.
Ruby ScriptError error type.
Ruby SecurityError error type.
Ruby SignalException error type.
Ruby StandardError error type.
Ruby StopIteration error type.
Ruby SyntaxError error type.
Ruby SystemCallError error type.
Ruby SystemExit error type.
Ruby SystemStackError error type.
Ruby ThreadError error type.
Ruby TypeError error type.
Ruby UncaughtThrowError error type.
Ruby ZeroDivisionError error type.


Classes of Ruby types.


Coerce Ruby values to native numerics (floats and integers).
Infallible conversion between two types.
Mutable infallible conversion between two types.
Rust extension hook that can be required.
Fallible conversions between two types.
Mutable fallible conversions between two types.

Type Definitions

Type alias for errors returned from init functions in extn.