#[repr(C)]pub struct Heap(/* private fields */);
Expand description
A heap for allocating managed C++ objects.
Similar to v8::Isolate, the heap may only be accessed from one thread at a time.
Implementations§
source§impl Heap
impl Heap
pub fn create( platform: SharedRef<Platform>, params: HeapCreateParams, ) -> UniqueRef<Heap>
pub fn collect_garbage_for_testing(&self, stack_state: EmbedderStackState)
pub fn enable_detached_garbage_collections_for_testing(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Heap
impl RefUnwindSafe for Heap
impl Send for Heap
impl Sync for Heap
impl Unpin for Heap
impl UnwindSafe for Heap
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