Struct cretonne_faerie::FaerieProduct [−][src]
pub struct FaerieProduct { pub artifact: Artifact, pub trap_manifest: Option<FaerieTrapManifest>, }
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
.
Methods
impl FaerieProduct
[src]
impl FaerieProduct
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Return the name of the output file. This is the name passed into new
.
pub fn emit(&self) -> Result<Vec<u8>, Error>
[src]
pub fn emit(&self) -> Result<Vec<u8>, Error>
Call emit
on the faerie Artifact
, producing bytes in memory.
pub fn write(&self, sink: File) -> Result<(), Error>
[src]
pub fn write(&self, sink: File) -> Result<(), Error>
Call write
on the faerie Artifact
, writing to a file.
Auto Trait Implementations
impl Send for FaerieProduct
impl Send for FaerieProduct
impl Sync for FaerieProduct
impl Sync for FaerieProduct