pub struct KernelPolicy {
pub allow_portable_optimized: bool,
pub allow_arch_simd: bool,
pub force_scalar: bool,
}Expand description
Kernel selection policy.
Fields§
§allow_portable_optimized: boolAllow portable optimized kernels.
allow_arch_simd: boolAllow architecture-specific SIMD after feature detection.
force_scalar: boolForce scalar reference path (for tests / debugging).
Implementations§
Source§impl KernelPolicy
impl KernelPolicy
Sourcepub const fn default_policy() -> Self
pub const fn default_policy() -> Self
Default: optimized allowed, SIMD allowed, scalar not forced.
Sourcepub const fn scalar_only() -> Self
pub const fn scalar_only() -> Self
Force scalar kernels only.
Trait Implementations§
Source§impl Clone for KernelPolicy
impl Clone for KernelPolicy
Source§fn clone(&self) -> KernelPolicy
fn clone(&self) -> KernelPolicy
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 KernelPolicy
Source§impl Debug for KernelPolicy
impl Debug for KernelPolicy
impl Eq for KernelPolicy
Source§impl Hash for KernelPolicy
impl Hash for KernelPolicy
Source§impl PartialEq for KernelPolicy
impl PartialEq for KernelPolicy
impl StructuralPartialEq for KernelPolicy
Auto Trait Implementations§
impl Freeze for KernelPolicy
impl RefUnwindSafe for KernelPolicy
impl Send for KernelPolicy
impl Sync for KernelPolicy
impl Unpin for KernelPolicy
impl UnsafeUnpin for KernelPolicy
impl UnwindSafe for KernelPolicy
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