pub struct Alloc {
pub memory: DeviceMemory,
pub offset: DeviceSize,
pub size: DeviceSize,
pub flags: AllocFlag,
pub backend_memory: BackendMemory,
/* private fields */
}Fields§
§memory: DeviceMemory§offset: DeviceSize§size: DeviceSize§flags: AllocFlag§backend_memory: BackendMemoryImplementations§
Source§impl Alloc
impl Alloc
Sourcepub unsafe fn from_device_memory(
memory: DeviceMemory,
offset: DeviceSize,
size: DeviceSize,
flags: AllocFlag,
) -> Alloc
pub unsafe fn from_device_memory( memory: DeviceMemory, offset: DeviceSize, size: DeviceSize, flags: AllocFlag, ) -> Alloc
§Safety
The memory’s lifetime is expected to outlive the lifetime of the returned object.
Trait Implementations§
impl Copy for Alloc
impl Send for Alloc
impl Sync for Alloc
Auto Trait Implementations§
impl Freeze for Alloc
impl RefUnwindSafe for Alloc
impl Unpin for Alloc
impl UnsafeUnpin for Alloc
impl UnwindSafe for Alloc
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