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

pub struct MachBufferFinalized {
    pub data: SmallVec<[u8; 1024]>,
    // 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.

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.

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.