- InertAtomic replaced atomic_inert! for improved tooling support - atomic_defaults! is easier to type out than to explain in a docstring - Changed rustfmt config to better support tiny functions such as as_any
20 lines
486 B
Rust
20 lines
486 B
Rust
//! Interaction with foreign code
|
|
//!
|
|
//! Structures and traits used in the exposure of external functions and values
|
|
//! to Orchid code
|
|
mod atom;
|
|
pub mod cps_box;
|
|
mod extern_fn;
|
|
mod inert;
|
|
|
|
use std::rc::Rc;
|
|
|
|
pub use atom::{Atom, Atomic, AtomicResult, AtomicReturn};
|
|
pub use extern_fn::{ExternError, ExternFn, XfnResult};
|
|
pub use inert::InertAtomic;
|
|
|
|
pub use crate::representations::interpreted::Clause;
|
|
|
|
/// A type-erased error in external code
|
|
pub type RcError = Rc<dyn ExternError>;
|