pub struct HandleStore { /* private fields */ }Expand description
Arena-backed store: ((index << 3) | 0b001). Used by the wasm simulator
and by host-side tests; never hands out host pointers.
Implementations§
Source§impl HandleStore
impl HandleStore
pub fn new() -> HandleStore
Trait Implementations§
Source§impl Default for HandleStore
impl Default for HandleStore
Source§fn default() -> HandleStore
fn default() -> HandleStore
Returns the “default value” for a type. Read more
Source§impl ValueStore for HandleStore
impl ValueStore for HandleStore
Source§fn alloc(&mut self, object: HeapObject) -> Value
fn alloc(&mut self, object: HeapObject) -> Value
Moves
object into the store and returns its tagged heap Value.Source§fn try_get(&self, value: Value) -> Option<&HeapObject>
fn try_get(&self, value: Value) -> Option<&HeapObject>
Resolves a tagged heap value.
None when value does not carry the
heap tag or does not name a live object of this store.fn try_get_mut(&mut self, value: Value) -> Option<&mut HeapObject>
Auto Trait Implementations§
impl Freeze for HandleStore
impl RefUnwindSafe for HandleStore
impl Send for HandleStore
impl Sync for HandleStore
impl Unpin for HandleStore
impl UnsafeUnpin for HandleStore
impl UnwindSafe for HandleStore
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