pub struct CompiledFunction { /* private fields */ }Expand description
A function which has been processed into a form suitable for execution.
Trait Implementations§
Source§impl Clone for CompiledFunction
impl Clone for CompiledFunction
Source§fn clone(&self) -> CompiledFunction
fn clone(&self) -> CompiledFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledFunction
impl Debug for CompiledFunction
Source§impl<'a> From<CompiledFunctionBytes<'a>> for CompiledFunction
impl<'a> From<CompiledFunctionBytes<'a>> for CompiledFunction
Source§fn from(cfb: CompiledFunctionBytes<'a>) -> Self
fn from(cfb: CompiledFunctionBytes<'a>) -> Self
Converts to this type from the input type.
Source§impl RunnableCode for CompiledFunction
impl RunnableCode for CompiledFunction
Source§fn num_params(&self) -> u32
fn num_params(&self) -> u32
The number of parameters of the function.
Source§fn num_registers(&self) -> u32
fn num_registers(&self) -> u32
The number of registers the function needs in the worst case.
This includes locals and parameters.
Source§fn constants(&self) -> &[i64]
fn constants(&self) -> &[i64]
The number of distinct constants that appear in the function body.
Source§fn type_idx(&self) -> TypeIndex
fn type_idx(&self) -> TypeIndex
The type of the function, as an index into the list of types of the
module.
Source§fn return_type(&self) -> BlockType
fn return_type(&self) -> BlockType
The return type of the function.
Source§fn num_locals(&self) -> u32
fn num_locals(&self) -> u32
The number of locals declared by the function. This does not include
the function parameters, only declared locals.
Source§fn locals(&self) -> LocalsIterator<'_> ⓘ
fn locals(&self) -> LocalsIterator<'_> ⓘ
An iterator over the locals (not including function parameters).
Auto Trait Implementations§
impl Freeze for CompiledFunction
impl RefUnwindSafe for CompiledFunction
impl Send for CompiledFunction
impl Sync for CompiledFunction
impl Unpin for CompiledFunction
impl UnwindSafe for CompiledFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more