[][src]Struct cranelift_faerie::FaerieProduct

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]

pub fn name(&self) -> &str[src]

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

pub fn emit(&self) -> Result<Vec<u8>, Error>[src]

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

pub fn write(&self, sink: File) -> Result<(), Error>[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]