pub struct ObjectProduct {
    pub object: Object<'static>,
    pub functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>,
    pub data_objects: SecondaryMap<DataId, Option<(SymbolId, bool)>>,
}
Expand description

This is the output of ObjectModule’s finish function. It contains the generated Object and other information produced during compilation.

Fields

object: Object<'static>

Object artifact with all functions and data from the module defined.

functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>

Symbol IDs for functions (both declared and defined).

data_objects: SecondaryMap<DataId, Option<(SymbolId, bool)>>

Symbol IDs for data objects (both declared and defined).

Implementations

Return the SymbolId for the given function.

Return the SymbolId for the given data object.

Write the object bytes in memory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.