pub struct FaerieProduct {
    pub artifact: Artifact,
    pub trap_manifest: Option<FaerieTrapManifest>,
}
Expand description

This is the output of Module’s finish function. It provides functions for writing out the object file to memory or a file.

Fields§

§artifact: Artifact

Faerie artifact with all functions, data, and links from the module defined

§trap_manifest: Option<FaerieTrapManifest>

Optional trap manifest. Contains FaerieTrapManifest when FaerieBuilder.collect_traps is set to FaerieTrapCollection::Enabled.

Implementations§

Return the name of the output file. This is the name passed into new.

Call emit on the faerie Artifact, producing bytes in memory.

Call write on the faerie Artifact, writing to a file.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.