pub enum Backend {
CpuSimd,
Gpu,
Cuda,
Wasm,
Embedded,
}Expand description
Backend selection for Trueno operations
Variants§
CpuSimd
CPU with SIMD (AVX2/AVX-512/NEON)
Gpu
GPU via compute shaders (wgpu/WebGPU)
Cuda
NVIDIA CUDA (requires cuda feature and NVIDIA driver)
Wasm
WebAssembly (browser deployment)
Embedded
Bare metal embedded (no_std)
Implementations§
Source§impl Backend
impl Backend
Sourcepub const fn supports_simd(&self) -> bool
pub const fn supports_simd(&self) -> bool
Check if this backend supports SIMD
Sourcepub const fn requires_std(&self) -> bool
pub const fn requires_std(&self) -> bool
Check if this backend requires std library
Sourcepub const fn is_gpu_accelerated(&self) -> bool
pub const fn is_gpu_accelerated(&self) -> bool
Check if this backend uses GPU acceleration
Sourcepub const fn requires_nvidia_driver(&self) -> bool
pub const fn requires_nvidia_driver(&self) -> bool
Check if this backend requires NVIDIA driver
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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