pub struct VisitorContext<'a, T> {
pub module: Arc<WasmModule>,
pub curr_funcidx: Option<u32>,
pub node: &'a T,
/* private fields */
}Fields§
§module: Arc<WasmModule>§curr_funcidx: Option<u32>§node: &'a TImplementations§
Source§impl<'a, T> VisitorContext<'a, T>
impl<'a, T> VisitorContext<'a, T>
pub fn new(module: Arc<WasmModule>, node: &'a T) -> Self
Source§impl<'a, T> VisitorContext<'a, Vec<T>>
impl<'a, T> VisitorContext<'a, Vec<T>>
pub fn insert_node_after(&mut self, new_node: T)
pub fn insert_node_before(&mut self, new_node: T)
Source§impl<'a> VisitorContext<'a, Value<Instr>>
impl<'a> VisitorContext<'a, Value<Instr>>
pub fn stop_traversal(&mut self)
pub fn insert_node_after(&mut self, new_node: Instr)
pub fn insert_node_before(&mut self, new_node: Instr)
pub fn replace_node(&mut self, new_node: Instr)
Auto Trait Implementations§
impl<'a, T> Freeze for VisitorContext<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for VisitorContext<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for VisitorContext<'a, T>
impl<'a, T> Sync for VisitorContext<'a, T>where
T: Sync,
impl<'a, T> Unpin for VisitorContext<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for VisitorContext<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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