pub enum BackendType {
CPU,
Auto,
}Expand description
Compute backend type.
Variants§
Implementations§
Source§impl BackendType
impl BackendType
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Check if this backend is available on the current system.
Sourcepub fn available_backends() -> Vec<BackendType>
pub fn available_backends() -> Vec<BackendType>
Get all available backends on this system.
Trait Implementations§
Source§impl Clone for BackendType
impl Clone for BackendType
Source§fn clone(&self) -> BackendType
fn clone(&self) -> BackendType
Returns a duplicate of the value. Read more
1.0.0 · 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 BackendType
impl Debug for BackendType
Source§impl Default for BackendType
impl Default for BackendType
Source§fn default() -> BackendType
fn default() -> BackendType
Returns the “default value” for a type. Read more
Source§impl Display for BackendType
impl Display for BackendType
Source§impl Hash for BackendType
impl Hash for BackendType
Source§impl PartialEq for BackendType
impl PartialEq for BackendType
impl Copy for BackendType
impl Eq for BackendType
impl StructuralPartialEq for BackendType
Auto Trait Implementations§
impl Freeze for BackendType
impl RefUnwindSafe for BackendType
impl Send for BackendType
impl Sync for BackendType
impl Unpin for BackendType
impl UnsafeUnpin for BackendType
impl UnwindSafe for BackendType
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