pub enum MemoryKind {
Device,
HostPinned,
Unified,
Host,
}Expand description
Memory-type classification, abstracting each backend’s notion of where
a buffer physically lives. Used by DeviceInfo and cross-backend
transfer planning.
Variants§
Device
Dedicated device (VRAM) memory, not host-addressable.
HostPinned
Pinned/page-locked host memory.
Unified
Unified / managed memory addressable from host and device.
Host
Plain pageable host memory (the CPU reference backend).
Trait Implementations§
Source§impl Clone for MemoryKind
impl Clone for MemoryKind
Source§fn clone(&self) -> MemoryKind
fn clone(&self) -> MemoryKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryKind
Source§impl Debug for MemoryKind
impl Debug for MemoryKind
Source§impl Display for MemoryKind
impl Display for MemoryKind
impl Eq for MemoryKind
Source§impl Hash for MemoryKind
impl Hash for MemoryKind
Source§impl PartialEq for MemoryKind
impl PartialEq for MemoryKind
Source§fn eq(&self, other: &MemoryKind) -> bool
fn eq(&self, other: &MemoryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryKind
Auto Trait Implementations§
impl Freeze for MemoryKind
impl RefUnwindSafe for MemoryKind
impl Send for MemoryKind
impl Sync for MemoryKind
impl Unpin for MemoryKind
impl UnsafeUnpin for MemoryKind
impl UnwindSafe for MemoryKind
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