Struct cranelift_codegen::machinst::buffer::MachBufferFinalized [−][src]
A MachBuffer once emission is completed: holds generated code and records,
without fixups. This allows the type to be independent of the backend.
Fields
data: SmallVec<[u8; 1024]>The buffer contents, as raw bytes.
Implementations
impl MachBufferFinalized[src]
pub fn get_srclocs_sorted(&self) -> &[MachSrcLoc]ⓘ[src]
Get a list of source location mapping tuples in sorted-by-start-offset order.
pub fn total_size(&self) -> CodeOffset[src]
Get the total required size for the code.
pub fn emit<CS: CodeSink>(&self, sink: &mut CS)[src]
Emit this buffer to the given CodeSink.
pub fn stack_maps(&self) -> &[MachStackMap]ⓘ[src]
Get the stack map metadata for this code.
Auto Trait Implementations
impl RefUnwindSafe for MachBufferFinalized[src]
impl Send for MachBufferFinalized[src]
impl Sync for MachBufferFinalized[src]
impl Unpin for MachBufferFinalized[src]
impl UnwindSafe for MachBufferFinalized[src]
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,
pub 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.
pub 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>,