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 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 crate::block::Block;
pub use crate::class;
pub use crate::convert::BoxUnboxVmValue;
pub use crate::convert::HeapAllocatedData;
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;
pub use crate::Artichoke;
pub use crate::Guard;
pub use scolapasta_aref as aref;
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§
- Ruby
- Classes of Ruby types.
Traits§
- 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.
- File
- Rust extension hook that can be required.
- TryConvert
- Fallible conversions between two types.
- TryConvert
Mut - Mutable fallible conversions between two types.
Type Aliases§
- Initialize
Result - Type alias for errors returned from
init
functions inextn
.