Skip to main content

Module

Type Alias Module 

Source
pub type Module<A> = fn(Any<A>) -> Result<Any<A>, Any<A>>;
Expand description

A compiled module, and its export object read through the runtime value. A compiled module: what fjs compile prints as pub fn module<A: IVm>(runtime: Any<A>) -> Result<Any<A>, Any<A>>, a function of the runtime value answering its export object or the value its initialization threw.