pub struct BackendConfig {
pub preferred: BackendPreference,
pub gpu_threshold: usize,
pub use_simd: bool,
}Expand description
Configuration for backend selection.
Fields§
§preferred: BackendPreferencePreferred backend type.
gpu_threshold: usizeMinimum dimensions for GPU dispatch (default: 4096).
use_simd: boolWhether to use SIMD on CPU (default: true).
Implementations§
Source§impl BackendConfig
impl BackendConfig
Sourcepub fn with_gpu_threshold(self, threshold: usize) -> Self
pub fn with_gpu_threshold(self, threshold: usize) -> Self
Set GPU threshold for automatic selection.
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
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 BackendConfig
impl Debug for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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