#[repr(u16)]pub enum BuildFeature {
Show 13 variants
Cuda = 1,
CudaNoVmm = 2,
DynamicBackends = 4,
DynamicLink = 8,
FaultInjection = 16,
Metal = 32,
Openmp = 64,
Rocm = 128,
SharedStdcxx = 256,
StaticStdcxx = 512,
SystemGgml = 1_024,
SystemGgmlStatic = 2_048,
Vulkan = 4_096,
}Variants§
Cuda = 1
CudaNoVmm = 2
DynamicBackends = 4
DynamicLink = 8
FaultInjection = 16
Metal = 32
Openmp = 64
Rocm = 128
StaticStdcxx = 512
SystemGgml = 1_024
SystemGgmlStatic = 2_048
Vulkan = 4_096
Trait Implementations§
Source§impl BitAnd for BuildFeature
impl BitAnd for BuildFeature
Source§impl BitFlag for BuildFeature
impl BitFlag for BuildFeature
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for BuildFeature
impl BitOr for BuildFeature
Source§impl BitXor for BuildFeature
impl BitXor for BuildFeature
Source§impl Clone for BuildFeature
impl Clone for BuildFeature
impl Copy for BuildFeature
Source§impl Debug for BuildFeature
impl Debug for BuildFeature
impl Eq for BuildFeature
Source§impl Not for BuildFeature
impl Not for BuildFeature
Source§impl PartialEq for BuildFeature
impl PartialEq for BuildFeature
Source§impl RawBitFlags for BuildFeature
impl RawBitFlags for BuildFeature
impl StructuralPartialEq for BuildFeature
Auto Trait Implementations§
impl Freeze for BuildFeature
impl RefUnwindSafe for BuildFeature
impl Send for BuildFeature
impl Sync for BuildFeature
impl Unpin for BuildFeature
impl UnsafeUnpin for BuildFeature
impl UnwindSafe for BuildFeature
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