Struct mnemos_alloc::node::ActiveUnsized
source · #[repr(C)]pub(crate) struct ActiveUnsized {
heap: *const AHeap,
}
Fields§
§heap: *const AHeap
Implementations§
source§impl ActiveUnsized
impl ActiveUnsized
sourcepub(crate) fn layout(layout_inner: Layout) -> (Layout, usize)
pub(crate) fn layout(layout_inner: Layout) -> (Layout, usize)
Obtain a valid layout for an ActiveUnsized with an inner allocation of
the requested Layout
.
sourcepub(crate) unsafe fn write_heap(this: NonNull<Self>, heap: *const AHeap)
pub(crate) unsafe fn write_heap(this: NonNull<Self>, heap: *const AHeap)
Set the heap pointer contained within the given ActiveUnsized
.
This should ONLY be used to initialize the ActiveUnsized
at time of allocation.
pub(crate) unsafe fn from_raw( data: NonNull<()>, layout_inner: Layout ) -> NonNull<Self>
Auto Trait Implementations§
impl !RefUnwindSafe for ActiveUnsized
impl !Send for ActiveUnsized
impl !Sync for ActiveUnsized
impl Unpin for ActiveUnsized
impl !UnwindSafe for ActiveUnsized
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