pub struct WasmStackSlot(pub u32);Expand description
Newtype over a WASM stack slot index, used as the “physical register” for WASM.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for WasmStackSlot
impl Clone for WasmStackSlot
impl Copy for WasmStackSlot
Source§impl Debug for WasmStackSlot
impl Debug for WasmStackSlot
impl Eq for WasmStackSlot
Source§impl Hash for WasmStackSlot
impl Hash for WasmStackSlot
Source§impl PartialEq for WasmStackSlot
impl PartialEq for WasmStackSlot
Source§impl PhysRegConvertible for WasmStackSlot
impl PhysRegConvertible for WasmStackSlot
Source§fn into_handle(self) -> PhysRegHandle
fn into_handle(self) -> PhysRegHandle
Convert the register into an opaque handle.
Source§fn from_handle(handle: PhysRegHandle) -> Option<Self>
fn from_handle(handle: PhysRegHandle) -> Option<Self>
Try to rebuild the register from an opaque handle.
impl StructuralPartialEq for WasmStackSlot
Auto Trait Implementations§
impl Freeze for WasmStackSlot
impl RefUnwindSafe for WasmStackSlot
impl Send for WasmStackSlot
impl Sync for WasmStackSlot
impl Unpin for WasmStackSlot
impl UnsafeUnpin for WasmStackSlot
impl UnwindSafe for WasmStackSlot
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