pub struct CpuFeatures {
pub avx2: bool,
pub sse41: bool,
pub neon: bool,
}Expand description
CPU SIMD feature flags detected for the current host.
Fields§
§avx2: boolTrue when AVX2 is available and enabled by the OS.
sse41: boolTrue when SSE4.1 is available.
neon: boolTrue when NEON is available.
Implementations§
Source§impl CpuFeatures
impl CpuFeatures
Trait Implementations§
Source§impl Clone for CpuFeatures
impl Clone for CpuFeatures
Source§fn clone(&self) -> CpuFeatures
fn clone(&self) -> CpuFeatures
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 CpuFeatures
Source§impl Debug for CpuFeatures
impl Debug for CpuFeatures
Source§impl Default for CpuFeatures
impl Default for CpuFeatures
Source§fn default() -> CpuFeatures
fn default() -> CpuFeatures
Returns the “default value” for a type. Read more
impl Eq for CpuFeatures
Source§impl Hash for CpuFeatures
impl Hash for CpuFeatures
Source§impl PartialEq for CpuFeatures
impl PartialEq for CpuFeatures
Source§fn eq(&self, other: &CpuFeatures) -> bool
fn eq(&self, other: &CpuFeatures) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CpuFeatures
Auto Trait Implementations§
impl Freeze for CpuFeatures
impl RefUnwindSafe for CpuFeatures
impl Send for CpuFeatures
impl Sync for CpuFeatures
impl Unpin for CpuFeatures
impl UnsafeUnpin for CpuFeatures
impl UnwindSafe for CpuFeatures
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