pub const fn empty() -> LockedHeap[src]
Creates an empty heap. All allocate calls will return
pub unsafe fn new(heap_bottom: usize, heap_size: usize) -> LockedHeap[src]
Creates a new heap with the given
size. The bottom address must be valid
and the memory in the
[heap_bottom, heap_bottom + heap_size) range must not be used for
anything else. This function is unsafe because it can cause undefined behavior if the
given address is invalid.
impl Deref for LockedHeap[src]
The resulting type after dereferencing.
impl GlobalAlloc for LockedHeap[src]
type Error = Infallible
The type returned in the event of a conversion error.