[][src]Struct wasmtime_environ::Compilation

pub struct Compilation { /* fields omitted */ }

The result of compiling a WebAssembly module's functions.

Methods

impl Compilation[src]

pub fn new(functions: PrimaryMap<DefinedFuncIndex, CompiledFunction>) -> Self[src]

Creates a compilation artifact from a contiguous function buffer and a set of ranges

pub fn from_buffer(
    buffer: Vec<u8>,
    functions: impl IntoIterator<Item = (Range<usize>, JumpTableOffsets, Range<usize>)>
) -> Self
[src]

Allocates the compilation result with the given function bodies.

pub fn get(&self, func: DefinedFuncIndex) -> &CompiledFunction[src]

Gets the bytes of a single function

pub fn len(&self) -> usize[src]

Gets the number of functions defined.

pub fn is_empty(&self) -> bool[src]

Returns whether there are no functions defined.

pub fn get_jt_offsets(&self) -> PrimaryMap<DefinedFuncIndex, JumpTableOffsets>[src]

Gets functions jump table offsets.

Trait Implementations

impl Debug for Compilation[src]

impl<'de> Deserialize<'de> for Compilation[src]

impl Eq for Compilation[src]

impl<'a> IntoIterator for &'a Compilation[src]

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

type Item = <Self::IntoIter as Iterator>::Item

The type of the elements being iterated over.

impl PartialEq<Compilation> for Compilation[src]

impl Serialize for Compilation[src]

impl StructuralEq for Compilation[src]

impl StructuralPartialEq for Compilation[src]

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.