Struct gpu_alloc::freelist::FreeListRegion
source · struct FreeListRegion<M> {
memory: Arc<M>,
ptr: Option<NonNull<u8>>,
chunk: u64,
start: u64,
end: u64,
}
Fields§
§memory: Arc<M>
§ptr: Option<NonNull<u8>>
§chunk: u64
§start: u64
§end: u64
Implementations§
source§impl<M> FreeListRegion<M>
impl<M> FreeListRegion<M>
pub fn cmp(&self, block: &FreeListBlock<M>) -> Ordering
fn from_block(block: FreeListBlock<M>) -> Self
fn into_block(self) -> FreeListBlock<M>
fn consecutive(&self, other: &Self) -> bool
fn merge(&mut self, next: FreeListRegion<M>)
fn is_prefix_block(&self, block: &FreeListBlock<M>) -> bool
fn merge_prefix_block(&mut self, block: FreeListBlock<M>)
fn is_suffix_block(&self, block: &FreeListBlock<M>) -> bool
fn merge_suffix_block(&mut self, block: FreeListBlock<M>)
Trait Implementations§
source§impl<M: Debug> Debug for FreeListRegion<M>
impl<M: Debug> Debug for FreeListRegion<M>
impl<M> Send for FreeListRegion<M>where
M: Send,
impl<M> Sync for FreeListRegion<M>where
M: Sync,
Auto Trait Implementations§
impl<M> Freeze for FreeListRegion<M>
impl<M> RefUnwindSafe for FreeListRegion<M>where
M: RefUnwindSafe,
impl<M> Unpin for FreeListRegion<M>
impl<M> UnwindSafe for FreeListRegion<M>where
M: RefUnwindSafe,
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