pub struct Module {
pub name: String,
pub bindings: HashMap<String, Expr>,
pub types: HashMap<String, TypeDefinition>,
pub type_env: TypeEnv,
}Expand description
A compiled module with its bindings and type environment
Fields§
§name: StringModule name
bindings: HashMap<String, Expr>Value bindings (functions and constants)
types: HashMap<String, TypeDefinition>Type definitions (records and discriminated unions)
type_env: TypeEnvType environment for this module
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)