Module artichoke_backend::extn::prelude

source ·
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.




  • 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 Aliases§