#[non_exhaustive]pub enum MemoryPoolAttributeValue {
Bool(bool),
Bytes(u64),
}Expand description
Typed value supplied to or returned from a CUDA memory-pool attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(bool)
Boolean value for a pool reuse policy.
Bytes(u64)
Unsigned byte count for a pool threshold or memory-usage statistic.
Trait Implementations§
Source§impl Clone for MemoryPoolAttributeValue
impl Clone for MemoryPoolAttributeValue
impl Copy for MemoryPoolAttributeValue
Source§impl Debug for MemoryPoolAttributeValue
impl Debug for MemoryPoolAttributeValue
impl Eq for MemoryPoolAttributeValue
Source§impl Hash for MemoryPoolAttributeValue
impl Hash for MemoryPoolAttributeValue
Source§impl PartialEq for MemoryPoolAttributeValue
impl PartialEq for MemoryPoolAttributeValue
impl StructuralPartialEq for MemoryPoolAttributeValue
Auto Trait Implementations§
impl Forget for MemoryPoolAttributeValue
impl Freeze for MemoryPoolAttributeValue
impl Move for MemoryPoolAttributeValue
impl RefUnwindSafe for MemoryPoolAttributeValue
impl Send for MemoryPoolAttributeValue
impl Sync for MemoryPoolAttributeValue
impl Unpin for MemoryPoolAttributeValue
impl UnsafeUnpin for MemoryPoolAttributeValue
impl UnwindSafe for MemoryPoolAttributeValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.