Module artichoke_backend::extn::prelude[][src]

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.

Re-exports

pub use crate::block::Block;
pub use crate::class;
pub use crate::core::Regexp as _;
pub use crate::core::Value as _;
pub use crate::def;
pub use crate::def::EnclosingRubyScope;
pub use crate::def::NotDefinedError;
pub use crate::ffi::InterpreterExtractError;
pub use crate::module;
pub use crate::prelude::*;
pub use crate::string::format_unicode_debug_into;
pub use crate::string::WriteError;
pub use crate::sys;
pub use crate::value::Value;

Enums

Errors encountered when incrementing line numbers on parser state.

Classes of Ruby types.

Classes of Rust types.

Traits

Define and store class specs on an interpreter.

Coerce Ruby values to native numerics (floats and integers).

Infallible conversion between two types.

Mutable infallible conversion between two types.

Debugging and Exception message support.

Deifne constants on an interprter.

Execute code and retrieve its result.

Rust extension hook that can be required.

Get and set global variables on an interpreter.

Store and retrieve bytestrings that have the same lifetime as the interpreter.

Make I/O external to the interpreter.

Load Ruby sources and Rust extensions into an interpreter.

Define and store module specs on an interpreter.

Manage parser state, active filename context, and line number metadata.

Interpreter global psuedorandom number generator.

Track the state of Regexp globals and global interpreter state.

Information about an Artichoke build.

Return a Value-wrapped reference to top self.

Fallible conversions between two types.

Mutable fallible conversions between two types.

A boxed Ruby value owned by the interpreter.

Emit warnings during interpreter execution to stderr.

Type Definitions

Type alias for errors returned from init functions in extn.