pub struct Stack { /* private fields */ }
Implementations§
Source§impl Stack
impl Stack
pub fn push<V: StackAccess>(&mut self, v: V)
pub fn pop<V: StackAccess>(&mut self) -> V
pub fn top<V: StackAccess>(&self) -> V
pub fn write_top_bytes<V: LittleEndian>(&mut self, v: V)
pub fn write_top_type(&mut self, t: ValType)
pub fn write_top<T: StackAccess, V: LittleEndian + AsValType>(&mut self, v: V)
pub fn write_local(&mut self, localidx: u32)
pub fn read_local(&mut self, localidx: u32)
pub fn push_label(&self) -> Label
pub fn pop_label(&mut self, label: &Label, has_result: bool)
pub fn push_frame( &mut self, params: &[ValType], locals: &[ValType], ) -> CallFrame
pub fn pop_frame(&mut self, prev_frame: CallFrame, has_result: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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