#[repr(u32)]pub enum MemoryLocation {
L1Cache = 0,
L2Cache = 1,
Dram = 2,
RegisterFile = 3,
TextureMemory = 4,
TextureShm = 5,
Cbu = 6,
Sram = 7,
}Variants§
L1Cache = 0
L2Cache = 1
Dram = 2
RegisterFile = 3
TextureMemory = 4
TextureShm = 5
Cbu = 6
Sram = 7
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 (const: unstable) · 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 From<MemoryLocation> for nvmlMemoryLocation_t
impl From<MemoryLocation> for nvmlMemoryLocation_t
Source§fn from(value: MemoryLocation) -> Self
fn from(value: MemoryLocation) -> Self
Converts to this type from the input type.
Source§impl From<MemoryLocation> for u32
impl From<MemoryLocation> for u32
Source§fn from(enum_value: MemoryLocation) -> Self
fn from(enum_value: MemoryLocation) -> Self
Converts to this type from the input type.
Source§impl From<nvmlMemoryLocation_enum> for MemoryLocation
impl From<nvmlMemoryLocation_enum> for MemoryLocation
Source§fn from(value: nvmlMemoryLocation_t) -> Self
fn from(value: nvmlMemoryLocation_t) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryLocation
impl Hash for MemoryLocation
Source§impl PartialEq for MemoryLocation
impl PartialEq for MemoryLocation
Source§fn eq(&self, other: &MemoryLocation) -> bool
fn eq(&self, other: &MemoryLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for MemoryLocation
impl TryFrom<u32> for MemoryLocation
Source§type Error = TryFromPrimitiveError<MemoryLocation>
type Error = TryFromPrimitiveError<MemoryLocation>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MemoryLocation
impl TryFromPrimitive for MemoryLocation
const NAME: &'static str = "MemoryLocation"
type Primitive = u32
type Error = TryFromPrimitiveError<MemoryLocation>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
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