[−][src]Struct walrus::LocalFunction
A function defined locally within the wasm module.
Fields
args: Vec<LocalId>
Arguments to this function, and the locals that they're assigned to.
Implementations
impl LocalFunction
[src]
pub fn ty(&self) -> TypeId
[src]
Get this function's type.
pub fn entry_block(&self) -> InstrSeqId
[src]
Get the id of this function's entry block.
pub fn block(&self, id: InstrSeqId) -> &InstrSeq
[src]
Get the block associated with the given id.
pub fn block_mut(&mut self, id: InstrSeqId) -> &mut InstrSeq
[src]
Get the block associated with the given id.
pub fn builder(&self) -> &FunctionBuilder
[src]
Get access to a FunctionBuilder
to continue adding instructions to
this function.
pub fn builder_mut(&mut self) -> &mut FunctionBuilder
[src]
Get access to a FunctionBuilder
to continue adding instructions to
this function.
pub fn size(&self) -> u64
[src]
Get the size of this function, in number of instructions.
pub fn is_const(&self) -> bool
[src]
Is this function's body a constant instruction?
pub fn used_data_segments(&self) -> HashSet<Id<Data>, BuildIdHasher>
[src]
Collect the set of data segments that are used in this function via
memory.init
or data.drop
instructions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LocalFunction
impl Send for LocalFunction
impl Sync for LocalFunction
impl Unpin for LocalFunction
impl UnwindSafe for LocalFunction
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,