pub enum HardwareMemorySemantics {
Unified,
SeparateTiers,
Unknown,
}Expand description
Serializable form of physical host/device memory semantics.
Variants§
Unified
Host and device allocations share one physical capacity.
SeparateTiers
Host and accelerator memory are physically separate.
Unknown
The relationship cannot be established.
Trait Implementations§
Source§impl Clone for HardwareMemorySemantics
impl Clone for HardwareMemorySemantics
Source§fn clone(&self) -> HardwareMemorySemantics
fn clone(&self) -> HardwareMemorySemantics
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 HardwareMemorySemantics
Source§impl Debug for HardwareMemorySemantics
impl Debug for HardwareMemorySemantics
Source§impl<'de> Deserialize<'de> for HardwareMemorySemantics
impl<'de> Deserialize<'de> for HardwareMemorySemantics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HardwareMemorySemantics
Source§impl PartialEq for HardwareMemorySemantics
impl PartialEq for HardwareMemorySemantics
Source§impl Serialize for HardwareMemorySemantics
impl Serialize for HardwareMemorySemantics
impl StructuralPartialEq for HardwareMemorySemantics
Auto Trait Implementations§
impl Freeze for HardwareMemorySemantics
impl RefUnwindSafe for HardwareMemorySemantics
impl Send for HardwareMemorySemantics
impl Sync for HardwareMemorySemantics
impl Unpin for HardwareMemorySemantics
impl UnsafeUnpin for HardwareMemorySemantics
impl UnwindSafe for HardwareMemorySemantics
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