artichoke_backend/extn/
prelude.rs

1//! A "prelude" for users of the `extn` module in the `artichoke-backend`
2//! crate.
3//!
4//! This prelude is similar to the standard library's prelude in that you'll
5//! almost always want to import its entire contents, but unlike the standard
6//! library's prelude, you'll have to do so manually:
7//!
8//! ```
9//! use artichoke_backend::extn::prelude::*;
10//! ```
11//!
12//! This prelude is most useful to include when developing functionality in the
13//! Artichoke standard library.
14//!
15//! The prelude may grow over time as additional items see ubiquitous use.
16
17pub use artichoke_core::class_registry::ClassRegistry as _;
18pub use artichoke_core::coerce_to_numeric::CoerceToNumeric;
19pub use artichoke_core::constant::DefineConstant as _;
20pub use artichoke_core::convert::{Convert, ConvertMut, TryConvert, TryConvertMut};
21pub use artichoke_core::debug::Debug as _;
22pub use artichoke_core::eval::Eval as _;
23pub use artichoke_core::file::File;
24pub use artichoke_core::globals::Globals as _;
25pub use artichoke_core::intern::Intern as _;
26pub use artichoke_core::io::Io as _;
27pub use artichoke_core::load::LoadSources as _;
28pub use artichoke_core::module_registry::ModuleRegistry as _;
29pub use artichoke_core::parser::Parser as _;
30pub use artichoke_core::prng::Prng as _;
31pub use artichoke_core::regexp::Regexp as _;
32pub use artichoke_core::types::Ruby;
33pub use artichoke_core::value::Value as _;
34pub use artichoke_core::warn::Warn as _;
35pub use scolapasta_aref as aref;
36pub use spinoso_exception::core::*;
37
38pub use crate::block::Block;
39pub use crate::class;
40pub use crate::convert::{BoxUnboxVmValue, HeapAllocatedData};
41pub use crate::def::{self, EnclosingRubyScope, NotDefinedError};
42pub use crate::error::{self, Error, RubyException};
43pub use crate::ffi::InterpreterExtractError;
44pub use crate::gc::MrbGarbageCollection as _;
45pub use crate::module;
46pub use crate::sys;
47pub use crate::value::Value;
48pub use crate::{Artichoke, Guard};
49
50/// Type alias for errors returned from `init` functions in
51/// [`extn`](crate::extn).
52pub type InitializeResult<T> = Result<T, Error>;