pub enum DeviceFact {
Cpu,
Cuda {
ordinal: Option<u32>,
},
Metal,
SameAs(String),
Unknown,
}Variants§
Trait Implementations§
Source§impl Clone for DeviceFact
impl Clone for DeviceFact
Source§fn clone(&self) -> DeviceFact
fn clone(&self) -> DeviceFact
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 DeviceFact
impl Debug for DeviceFact
Source§impl<'de> Deserialize<'de> for DeviceFact
impl<'de> Deserialize<'de> for DeviceFact
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 DeviceFact
Source§impl PartialEq for DeviceFact
impl PartialEq for DeviceFact
Source§impl Serialize for DeviceFact
impl Serialize for DeviceFact
impl StructuralPartialEq for DeviceFact
Auto Trait Implementations§
impl Freeze for DeviceFact
impl RefUnwindSafe for DeviceFact
impl Send for DeviceFact
impl Sync for DeviceFact
impl Unpin for DeviceFact
impl UnsafeUnpin for DeviceFact
impl UnwindSafe for DeviceFact
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