pub enum MemoryLocation {
SystemRam,
PinnedMemory,
GpuVram(DeviceId),
UnifiedMemory,
}Expand description
Memory location
Variants§
SystemRam
System RAM
PinnedMemory
Pinned (page-locked) memory
GpuVram(DeviceId)
GPU VRAM
UnifiedMemory
Unified/managed memory
Trait Implementations§
Source§impl Clone for MemoryLocation
impl Clone for MemoryLocation
Source§fn clone(&self) -> MemoryLocation
fn clone(&self) -> MemoryLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryLocation
impl Debug for MemoryLocation
Source§impl Display for MemoryLocation
impl Display for MemoryLocation
Source§impl PartialEq for MemoryLocation
impl PartialEq for MemoryLocation
impl Copy for MemoryLocation
impl Eq for MemoryLocation
impl StructuralPartialEq for MemoryLocation
Auto Trait Implementations§
impl Freeze for MemoryLocation
impl RefUnwindSafe for MemoryLocation
impl Send for MemoryLocation
impl Sync for MemoryLocation
impl Unpin for MemoryLocation
impl UnsafeUnpin for MemoryLocation
impl UnwindSafe for MemoryLocation
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