Expand description
A “prelude” for users of 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::prelude::*;
The prelude may grow over time as additional items see ubiquitous use.
Re-exports§
pub use crate::error;
pub use crate::error::Error;
pub use crate::error::RubyException;
pub use crate::gc::MrbGarbageCollection;
pub use crate::release_metadata::ReleaseMetadata;
pub use crate::Artichoke;
pub use crate::Guard;
Structs§
- Argument
Error - Ruby
ArgumentError
error type. - EOFError
- Ruby
EOFError
error type. - Encoding
Error - Ruby
EncodingError
error type. - Exception
- Ruby
Exception
error type. - Fatal
- Ruby
fatal
error type. - Fiber
Error - Ruby
FiberError
error type. - Float
Domain Error - Ruby
FloatDomainError
error type. - Frozen
Error - Ruby
FrozenError
error type. - IOError
- Ruby
IOError
error type. - Index
Error - Ruby
IndexError
error type. - Interrupt
- Ruby
Interrupt
error type. - KeyError
- Ruby
KeyError
error type. - Load
Error - Ruby
LoadError
error type. - Local
Jump Error - Ruby
LocalJumpError
error type. - Name
Error - Ruby
NameError
error type. - NoMemory
Error - Ruby
NoMemoryError
error type. - NoMethod
Error - Ruby
NoMethodError
error type. - NotImplemented
Error - Ruby
NotImplementedError
error type. - Range
Error - Ruby
RangeError
error type. - Regexp
Error - Ruby
RegexpError
error type. - Runtime
Error - Ruby
RuntimeError
error type. - Script
Error - Ruby
ScriptError
error type. - Security
Error - Ruby
SecurityError
error type. - Signal
Exception - Ruby
SignalException
error type. - Standard
Error - Ruby
StandardError
error type. - Stop
Iteration - Ruby
StopIteration
error type. - Syntax
Error - Ruby
SyntaxError
error type. - System
Call Error - Ruby
SystemCallError
error type. - System
Exit - Ruby
SystemExit
error type. - System
Stack Error - Ruby
SystemStackError
error type. - Thread
Error - Ruby
ThreadError
error type. - Type
Error - Ruby
TypeError
error type. - Uncaught
Throw Error - Ruby
UncaughtThrowError
error type. - Zero
Division Error - Ruby
ZeroDivisionError
error type.
Enums§
- Increment
Lineno Error - Errors encountered when incrementing line numbers on parser state.
- Ruby
- Classes of Ruby types.
- Rust
- Classes of Rust types.
Traits§
- Class
Registry - Define and store class specs on an interpreter.
- Coerce
ToNumeric - Coerce Ruby values to native numerics (floats and integers).
- Convert
- Infallible conversion between two types.
- Convert
Mut - Mutable infallible conversion between two types.
- Debug
- Debugging and
Exception
message support. - Define
Constant - Define constants on an interpreter.
- Eval
- Execute code and retrieve its result.
- File
- Rust extension hook that can be required.
- Globals
- Get and set global variables on an interpreter.
- Hash
- A trait for retrieving an interpreter-global
BuildHasher
. - Intern
- Store and retrieve byte strings that have the same lifetime as the interpreter.
- Io
- Perform I/O external to the interpreter.
- Load
Sources - Load Ruby sources and Rust extensions into an interpreter.
- Module
Registry - Define and store module specs on an interpreter.
- Parser
- Manage parser state, active filename context, and line number metadata.
- Prng
- Interpreter global pseudorandom number generator (PRNG).
- Regexp
- Track the state of
Regexp
special global variables and global interpreter state. - TopSelf
- Return a
Value
-wrapped reference to top self. - TryConvert
- Fallible conversions between two types.
- TryConvert
Mut - Mutable fallible conversions between two types.
- Value
- A boxed Ruby value owned by the interpreter.
- Warn
- Emit warnings during interpreter execution to stderr.