roopes-core 0.1.1

Roopes is a Rust Object Oriented Pattern Element System. This crate provides generic traits and implementations for typical object-oriented patterns in Rust. It is intended to be used as a cluster of utility classes for implementing OOP-architected executables -- in Rust!
Documentation
//!
#![cfg_attr(feature = "doc-images",
  cfg_attr(
    all(),
    doc = ::embed_doc_image::embed_image!(
        "executable-diagram",
        "src/primitives/executable/executable.svg"
)))]
//! Provides an encapsulated unit of execution.
//!
//! ![executable diagram][executable-diagram]

pub mod heap;
pub mod lambda;

pub use heap::Heap;
pub use lambda::Lambda;

#[cfg(test)]
mod tests;

/// Encapsulates a block of execution which may be
/// run zero-or-more times.
pub trait Executable
{
    /// Run the unit of execution.
    fn execute(&self);
}

/// Exposes the [`Executable`] type at the library
/// level.
pub mod prelude
{
    pub use super::Executable;
}