pub struct AllocatedBlocks { /* private fields */ }Expand description
Allocated blocks from the buddy allocator with automatic cleanup.
This structure owns a list of allocated blocks and ensures they are
automatically freed when dropped. Use iter() to iterate over all
allocated blocks.
§Invariants
listis an initialized, valid list head containing allocated blocks.
Implementations§
Source§impl AllocatedBlocks
impl AllocatedBlocks
Sourcepub fn iter(&self) -> impl Iterator<Item = AllocatedBlock<'_>> + '_
pub fn iter(&self) -> impl Iterator<Item = AllocatedBlock<'_>> + '_
Iterate over allocated blocks.
Returns an iterator yielding AllocatedBlock values. Each AllocatedBlock
borrows self and is only valid for the duration of that borrow.
Trait Implementations§
Source§impl Drop for AllocatedBlocks
impl Drop for AllocatedBlocks
Source§impl HasPinData for AllocatedBlocks
impl HasPinData for AllocatedBlocks
Source§impl PinnedDrop for AllocatedBlocks
impl PinnedDrop for AllocatedBlocks
Auto Trait Implementations§
impl !Freeze for AllocatedBlocks
impl !RefUnwindSafe for AllocatedBlocks
impl Send for AllocatedBlocks
impl Sync for AllocatedBlocks
impl !UnsafeUnpin for AllocatedBlocks
impl !UnwindSafe for AllocatedBlocks
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