Struct intuicio_essentials::data::data_heap::DataHeapMemoryPage
source · pub struct DataHeapMemoryPage { /* private fields */ }Implementations§
source§impl DataHeapMemoryPage
impl DataHeapMemoryPage
pub fn new(capacity: usize) -> DataHeapMemoryPage
pub fn capacity(&self) -> usize
pub fn size(&self) -> usize
pub fn available_size(&self) -> usize
pub fn has_object<T>(&self, data: &DataHeapBox<T>) -> bool
pub fn alloc<T>(
page: &Arc<RwLock<DataHeapMemoryPage>>,
value: T
) -> Option<DataHeapBox<T>>where
T: Finalize,
sourcepub unsafe fn alloc_uninitialized<T>(
page: &Arc<RwLock<DataHeapMemoryPage>>
) -> Option<DataHeapBox<T>>where
T: Finalize,
pub unsafe fn alloc_uninitialized<T>(
page: &Arc<RwLock<DataHeapMemoryPage>>
) -> Option<DataHeapBox<T>>where
T: Finalize,
§Safety
sourcepub unsafe fn leak(
page: &Arc<RwLock<DataHeapMemoryPage>>,
data_pointer: *mut (),
id: ID<DataHeapMemoryPage>
) -> unsafe fn(_: *mut ())
pub unsafe fn leak( page: &Arc<RwLock<DataHeapMemoryPage>>, data_pointer: *mut (), id: ID<DataHeapMemoryPage> ) -> unsafe fn(_: *mut ())
§Safety
pub fn stats(&self) -> DataHeapStatsPage
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DataHeapMemoryPage
impl Send for DataHeapMemoryPage
impl Sync for DataHeapMemoryPage
impl Unpin for DataHeapMemoryPage
impl UnwindSafe for DataHeapMemoryPage
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