airlang 0.26.0

Air is a minimalist and universal programming language.
Documentation
pub use self::comp::CompFunc;
pub use self::prim::CtxConstInputAwareFunc;
pub use self::prim::CtxConstInputFreeFunc;
pub use self::prim::CtxFreeInputAwareFunc;
pub use self::prim::CtxFreeInputFreeFunc;
pub use self::prim::CtxMutInputAwareFunc;
pub use self::prim::CtxMutInputFreeFunc;
pub use self::prim::PrimCtx;
pub use self::prim::PrimFunc;
pub use self::prim::PrimInput;

_____!();

pub(crate) use self::comp::CompCtx;
pub(crate) use self::comp::CompInput;

_____!();

pub trait DynFunc<Cfg, Ctx, I, O> {
    fn call(&self, cfg: &mut Cfg, ctx: &mut Ctx, input: I) -> O;
}

impl<Cfg, Ctx, I, O, T> DynFunc<Cfg, Ctx, I, O> for &T
where T: ?Sized + DynFunc<Cfg, Ctx, I, O>
{
    fn call(&self, cfg: &mut Cfg, ctx: &mut Ctx, input: I) -> O {
        (**self).call(cfg, ctx, input)
    }
}

mod prim;

mod comp;