pub struct BuddyAllocator { /* private fields */ }Expand description
Bitmap-tree-based buddy allocator, loosely based on https://github.com/Restioson/buddy-allocator-workshop.
Implementations§
Trait Implementations§
Source§impl Allocator for BuddyAllocator
impl Allocator for BuddyAllocator
type Allocation = BuddyAllocation
fn allocate( &mut self, size: NonZeroU64, alignment: NonZeroU64, ) -> Result<Self::Allocation, OutOfMemory>
fn from_properties(min_alloc: u64, capacity: NonZeroU64) -> Self
Source§impl Clone for BuddyAllocator
impl Clone for BuddyAllocator
Source§fn clone(&self) -> BuddyAllocator
fn clone(&self) -> BuddyAllocator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Deallocator for BuddyAllocator
impl Deallocator for BuddyAllocator
fn deallocate(&mut self, alloc: &Self::Allocation)
Auto Trait Implementations§
impl Freeze for BuddyAllocator
impl RefUnwindSafe for BuddyAllocator
impl Send for BuddyAllocator
impl Sync for BuddyAllocator
impl Unpin for BuddyAllocator
impl UnwindSafe for BuddyAllocator
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