#[non_exhaustive]pub enum TensorDevice {
Device(i32),
Host,
HostPinned,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for TensorDevice
impl Clone for TensorDevice
Source§fn clone(&self) -> TensorDevice
fn clone(&self) -> TensorDevice
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 TensorDevice
Source§impl Debug for TensorDevice
impl Debug for TensorDevice
impl Eq for TensorDevice
Source§impl From<i32> for TensorDevice
impl From<i32> for TensorDevice
Source§impl Hash for TensorDevice
impl Hash for TensorDevice
Source§impl PartialEq for TensorDevice
impl PartialEq for TensorDevice
Source§fn eq(&self, other: &TensorDevice) -> bool
fn eq(&self, other: &TensorDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TensorDevice
Auto Trait Implementations§
impl Freeze for TensorDevice
impl RefUnwindSafe for TensorDevice
impl Send for TensorDevice
impl Sync for TensorDevice
impl Unpin for TensorDevice
impl UnsafeUnpin for TensorDevice
impl UnwindSafe for TensorDevice
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