Struct cranelift_codegen::machinst::buffer::MachBufferFinalized[][src]

pub struct MachBufferFinalized {
    pub data: SmallVec<[u8; 1024]>,
    pub unwind_info: SmallVec<[(CodeOffset, UnwindInst); 8]>,
    // some fields omitted
}

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.

unwind_info: SmallVec<[(CodeOffset, UnwindInst); 8]>

Any unwind info at a given location.

Implementations

impl MachBufferFinalized[src]

pub fn get_srclocs_sorted(&self) -> &[MachSrcLoc]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the stack map metadata for this code.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.