pub enum CpuFeaturesInfo {
AppleSi(AppleSiCpuFeaturesInfo),
x86_64(X86_64CpuFeaturesInfo),
}Expand description
Encapsulates the CPU features for the current processor.
Variants§
Implementations§
Source§impl CpuFeaturesInfo
impl CpuFeaturesInfo
Sourcepub fn get_apple_si_features(self) -> AppleSiCpuFeaturesInfo
pub fn get_apple_si_features(self) -> AppleSiCpuFeaturesInfo
Unwraps the cpu features of the Apple Silicon CPU.
Sourcepub fn get_x86_features(self) -> X86_64CpuFeaturesInfo
pub fn get_x86_features(self) -> X86_64CpuFeaturesInfo
Unwraps the cpu features of the x86_64 CPU.
Trait Implementations§
Source§impl Debug for CpuFeaturesInfo
impl Debug for CpuFeaturesInfo
Source§impl Display for CpuFeaturesInfo
impl Display for CpuFeaturesInfo
Auto Trait Implementations§
impl Freeze for CpuFeaturesInfo
impl RefUnwindSafe for CpuFeaturesInfo
impl Send for CpuFeaturesInfo
impl Sync for CpuFeaturesInfo
impl Unpin for CpuFeaturesInfo
impl UnwindSafe for CpuFeaturesInfo
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