[−][src]Struct wasmtime_environ::Compilation
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)>
) -> Self
[src]
buffer: Vec<u8>,
functions: impl IntoIterator<Item = (Range<usize>, JumpTableOffsets)>
) -> Self
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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.
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Compilation> for Compilation
[src]
fn eq(&self, other: &Compilation) -> bool
[src]
fn ne(&self, other: &Compilation) -> bool
[src]
impl Serialize for Compilation
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Compilation
[src]
impl StructuralPartialEq for Compilation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Compilation
impl Send for Compilation
impl Sync for Compilation
impl Unpin for Compilation
impl UnwindSafe for Compilation
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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> Same<T> for T
type Output = T
Should always be Self
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.
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>,