Struct ketos::module::ModuleCode [] [src]

pub struct ModuleCode {
    pub code: Vec<Rc<Code>>,
    pub exports: NameSetSlice,
    pub imports: Vec<ImportSet>,
    pub constants: Vec<(Name, Value)>,
    pub macros: Vec<(Name, Rc<Code>)>,
    pub values: Vec<(Name, Value)>,
    pub module_doc: Option<String>,
    pub docs: Vec<(Name, String)>,
}

Contains code and data representing a compiled module

Fields

Decoded Code objects

Exported names

Imported names

Decoded constant values

Decoded macro objects

Global values generated at compile time

Module doc strings

Doc strings

Methods

impl ModuleCode
[src]

Creates a ModuleCode from a series of code objects and a Scope.

Trivial code objects will be removed.

Loads contained values into the given scope, which should be empty, and sequentially executes all contained code objects within the scope.

Trait Implementations

impl Clone for ModuleCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for ModuleCode
[src]

Returns the "default value" for a type. Read more