[−][src]Struct cgc_single_threaded::heap::Heap
Fields
do_gc_after_drop: bool
If this value is true then when heap is dropped GC cycle is performed to drop all values.
Methods
impl Heap
[src]
pub fn root<T: Trace + Sized + 'static>(
&mut self,
value: Handle<T>
) -> Rooted<T>
[src]
&mut self,
value: Handle<T>
) -> Rooted<T>
pub fn new(
new_page_size: usize,
old_page_size: usize,
do_gc_after_drop: bool
) -> Heap
[src]
new_page_size: usize,
old_page_size: usize,
do_gc_after_drop: bool
) -> Heap
pub fn allocate<T: Trace + 'static>(&mut self, value: T) -> Rooted<T>
[src]
pub fn needs_gc(&self) -> bool
[src]
pub fn safepoint(&mut self)
[src]
pub fn collect(&mut self)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Heap
impl !Send for Heap
impl !Sync for Heap
impl Unpin for Heap
impl !UnwindSafe for Heap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,