pub enum BackendId {
Cpu,
Cuda,
WebGpu,
Other(&'static str),
}Expand description
Stable backend identifier used by capability descriptors.
§Examples
use tenferro_tensor::BackendId;
assert_eq!(BackendId::Cuda.as_str(), "cuda");Variants§
Implementations§
Trait Implementations§
Source§impl Ord for BackendId
impl Ord for BackendId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BackendId
impl PartialOrd for BackendId
impl Copy for BackendId
impl Eq for BackendId
impl StructuralPartialEq for BackendId
Auto Trait Implementations§
impl Freeze for BackendId
impl RefUnwindSafe for BackendId
impl Send for BackendId
impl Sync for BackendId
impl Unpin for BackendId
impl UnsafeUnpin for BackendId
impl UnwindSafe for BackendId
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