pub enum BackendPreference {
Auto,
Native,
Onnx,
}Variants§
Auto
Native first, ONNX fallback when native is unavailable.
Native
Native only; an unavailable backend is an error.
Onnx
ONNX only (e.g. benchmarking or a deliberate cross-platform baseline).
Trait Implementations§
Source§impl Clone for BackendPreference
impl Clone for BackendPreference
impl Copy for BackendPreference
Source§impl Debug for BackendPreference
impl Debug for BackendPreference
impl Eq for BackendPreference
Source§impl PartialEq for BackendPreference
impl PartialEq for BackendPreference
impl StructuralPartialEq for BackendPreference
Auto Trait Implementations§
impl Forget for BackendPreference
impl Freeze for BackendPreference
impl Move for BackendPreference
impl RefUnwindSafe for BackendPreference
impl Send for BackendPreference
impl Sync for BackendPreference
impl Unpin for BackendPreference
impl UnsafeUnpin for BackendPreference
impl UnwindSafe for BackendPreference
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