pub struct CpuFeatures {
pub arch: CpuArch,
pub cache_line_size: u32,
pub cpu_cores: u32,
pub supports_fpu: bool,
pub supports_vector: bool,
pub supports_atomic_cas: bool,
pub supports_memory_ordering: bool,
}
Expand description
CPU feature flags for different architectures.
Fields§
§arch: CpuArch
§cache_line_size: u32
§cpu_cores: u32
§supports_fpu: bool
§supports_vector: bool
§supports_atomic_cas: bool
§supports_memory_ordering: bool
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 · 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 CpuFeatures
impl Debug for CpuFeatures
impl Copy 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 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