pub struct AllocatedBlock<'a> { /* private fields */ }Expand description
A buddy block paired with its owning AllocatedBlocks context.
Unlike a raw block, which only knows its offset within the buddy address
space, an AllocatedBlock also has access to the allocator’s base_offset
and chunk_size, enabling it to compute absolute offsets and byte sizes.
Returned by AllocatedBlocks::iter().
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AllocatedBlock<'a>
impl<'a> !RefUnwindSafe for AllocatedBlock<'a>
impl<'a> Send for AllocatedBlock<'a>
impl<'a> Sync for AllocatedBlock<'a>
impl<'a> Unpin for AllocatedBlock<'a>
impl<'a> UnsafeUnpin for AllocatedBlock<'a>
impl<'a> !UnwindSafe for AllocatedBlock<'a>
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more