Struct gpu_alloc::buddy::BuddyBlock
source · pub(crate) struct BuddyBlock<M> {
pub memory: Arc<M>,
pub ptr: Option<NonNull<u8>>,
pub offset: u64,
pub size: u64,
pub chunk: usize,
pub index: usize,
}
Fields§
§memory: Arc<M>
§ptr: Option<NonNull<u8>>
§offset: u64
§size: u64
§chunk: usize
§index: usize
Trait Implementations§
source§impl<M: Debug> Debug for BuddyBlock<M>
impl<M: Debug> Debug for BuddyBlock<M>
impl<M> Send for BuddyBlock<M>where
M: Send,
impl<M> Sync for BuddyBlock<M>where
M: Sync,
Auto Trait Implementations§
impl<M> Freeze for BuddyBlock<M>
impl<M> RefUnwindSafe for BuddyBlock<M>where
M: RefUnwindSafe,
impl<M> Unpin for BuddyBlock<M>
impl<M> UnwindSafe for BuddyBlock<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