[−][src]Struct cranelift_faerie::FaerieProduct
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FaerieProduct
impl Send for FaerieProduct
impl Sync for FaerieProduct
impl Unpin for FaerieProduct
impl UnwindSafe for FaerieProduct
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,