pub struct CompiledFunctionBytes<'a> { /* private fields */ }
Expand description
A borrowed variant of CompiledFunction that does not own the body and locals. This is used to make deserialization of artifacts cheaper.
Trait Implementations§
Source§impl<'a> Debug for CompiledFunctionBytes<'a>
impl<'a> Debug for CompiledFunctionBytes<'a>
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<'a, Ctx: Copy> Parseable<'a, Ctx> for CompiledFunctionBytes<'a>
impl<'a, Ctx: Copy> Parseable<'a, Ctx> for CompiledFunctionBytes<'a>
Source§impl<'a> RunnableCode for CompiledFunctionBytes<'a>
impl<'a> RunnableCode for CompiledFunctionBytes<'a>
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<'a> Freeze for CompiledFunctionBytes<'a>
impl<'a> RefUnwindSafe for CompiledFunctionBytes<'a>
impl<'a> Send for CompiledFunctionBytes<'a>
impl<'a> Sync for CompiledFunctionBytes<'a>
impl<'a> Unpin for CompiledFunctionBytes<'a>
impl<'a> UnwindSafe for CompiledFunctionBytes<'a>
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