pub enum ComputePref {
Auto,
Cpu,
Cuda,
}Expand description
CLI / config preference. Orthogonal to hybrid_execution.
Variants§
Implementations§
Source§impl ComputePref
impl ComputePref
pub fn parse(raw: &str) -> Result<Self, EngineError>
Trait Implementations§
Source§impl Clone for ComputePref
impl Clone for ComputePref
Source§fn clone(&self) -> ComputePref
fn clone(&self) -> ComputePref
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 ComputePref
Source§impl Debug for ComputePref
impl Debug for ComputePref
Source§impl Default for ComputePref
impl Default for ComputePref
Source§fn default() -> ComputePref
fn default() -> ComputePref
Returns the “default value” for a type. Read more
impl Eq for ComputePref
Source§impl PartialEq for ComputePref
impl PartialEq for ComputePref
impl StructuralPartialEq for ComputePref
Auto Trait Implementations§
impl Freeze for ComputePref
impl RefUnwindSafe for ComputePref
impl Send for ComputePref
impl Sync for ComputePref
impl Unpin for ComputePref
impl UnsafeUnpin for ComputePref
impl UnwindSafe for ComputePref
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more