Enum gpu_alloc::block::MemoryBlockFlavor
source · pub(crate) enum MemoryBlockFlavor<M> {
Dedicated {
memory: M,
},
Buddy {
chunk: usize,
index: usize,
ptr: Option<NonNull<u8>>,
memory: Arc<M>,
},
FreeList {
chunk: u64,
ptr: Option<NonNull<u8>>,
memory: Arc<M>,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for MemoryBlockFlavor<M>where
M: Freeze,
impl<M> RefUnwindSafe for MemoryBlockFlavor<M>where
M: RefUnwindSafe,
impl<M> !Send for MemoryBlockFlavor<M>
impl<M> !Sync for MemoryBlockFlavor<M>
impl<M> Unpin for MemoryBlockFlavor<M>where
M: Unpin,
impl<M> UnwindSafe for MemoryBlockFlavor<M>where
M: UnwindSafe + 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