pub struct PointerStore { /* private fields */ }Implementations§
Source§impl PointerStore
impl PointerStore
pub fn new() -> PointerStore
Trait Implementations§
Source§impl Default for PointerStore
impl Default for PointerStore
Source§fn default() -> PointerStore
fn default() -> PointerStore
Returns the “default value” for a type. Read more
Source§impl ValueStore for PointerStore
Available on non-target_family=wasm only.
impl ValueStore for PointerStore
Available on non-
target_family=wasm only.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 PointerStore
impl RefUnwindSafe for PointerStore
impl Send for PointerStore
impl Sync for PointerStore
impl Unpin for PointerStore
impl UnsafeUnpin for PointerStore
impl UnwindSafe for PointerStore
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