[−][src]Struct walrus::LocalFunction
A function defined locally within the wasm module.
Fields
ty: TypeId
This function's type.
args: Vec<LocalId>
Arguments to this function, and the locals that they're assigned to
Methods
impl LocalFunction
[src]
pub fn entry_block(&self) -> BlockId
[src]
Get the id of this function's entry block.
pub fn block(&self, block: BlockId) -> &Block
[src]
Get the block associated with the given id.
pub fn block_mut(&mut self, block: BlockId) -> &mut Block
[src]
Get the block associated with the given id.
pub fn get(&self, id: ExprId) -> &Expr
[src]
Get the expression associated with the given id
pub fn get_mut(&mut self, id: ExprId) -> &mut Expr
[src]
Get the expression associated with the given id
pub fn builder(&self) -> &FunctionBuilder
[src]
Get access to a FunctionBuilder
to continue adding expressions to
this function.
pub fn builder_mut(&mut self) -> &mut FunctionBuilder
[src]
Get access to a FunctionBuilder
to continue adding expressions to
this function.
pub fn size(&self) -> u64
[src]
Get the size of this function, in number of expressions.
pub fn is_const(&self) -> bool
[src]
Is this function's body a constant expression?
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
impl Dot for LocalFunction
[src]
impl Debug for LocalFunction
[src]
Auto Trait Implementations
impl Sync for LocalFunction
impl Send for LocalFunction
impl Unpin for LocalFunction
impl RefUnwindSafe for LocalFunction
impl UnwindSafe for LocalFunction
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,