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
}
Expand description

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.