pub struct HeapSession<'h> { /* private fields */ }Implementations§
Source§impl<'h> HeapSession<'h>
impl<'h> HeapSession<'h>
pub fn set_page_limit<T: IntoHeapAllocation<'h>>( &mut self, limit: Option<usize>, )
pub fn try_alloc<T: IntoHeapAllocation<'h>>( &mut self, value: T, ) -> Option<T::Ref>
pub fn alloc<T: IntoHeapAllocation<'h>>(&mut self, value: T) -> T::Ref
pub fn force_gc(&mut self)
Auto Trait Implementations§
impl<'h> Freeze for HeapSession<'h>
impl<'h> !RefUnwindSafe for HeapSession<'h>
impl<'h> !Send for HeapSession<'h>
impl<'h> !Sync for HeapSession<'h>
impl<'h> Unpin for HeapSession<'h>
impl<'h> !UnwindSafe for HeapSession<'h>
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