#[non_exhaustive]#[repr(i32)]pub enum X86Machine {
Show 25 variants
I386 = 0,
I486 = 1,
I586 = 2,
Lakemont = 3,
PentiumMmx = 4,
PentiumPro = 5,
Pentium2 = 6,
Pentium3 = 7,
Pentium3m = 8,
PentiumM = 9,
Pentium4 = 10,
Prescott = 11,
X86_64 = 12,
Nocona = 13,
Core2 = 14,
Nehalem = 15,
Westmere = 16,
SandyBridge = 17,
IvyBridge = 18,
Haswell = 19,
Broadwell = 20,
Skylake = 21,
Bonnell = 22,
Silvermont = 23,
Goldmont = 24,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
I386 = 0
I486 = 1
I586 = 2
Lakemont = 3
PentiumMmx = 4
PentiumPro = 5
Pentium2 = 6
Pentium3 = 7
Pentium3m = 8
PentiumM = 9
Pentium4 = 10
Prescott = 11
X86_64 = 12
Nocona = 13
Core2 = 14
Nehalem = 15
Westmere = 16
SandyBridge = 17
IvyBridge = 18
Haswell = 19
Broadwell = 20
Skylake = 21
Bonnell = 22
Silvermont = 23
Goldmont = 24
Implementations§
Source§impl X86Machine
impl X86Machine
pub fn cpu_name(&self) -> &'static str
pub fn cpu_features(&self) -> &'static [X86Feature]
Trait Implementations§
Source§impl Clone for X86Machine
impl Clone for X86Machine
Source§fn clone(&self) -> X86Machine
fn clone(&self) -> X86Machine
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 Display for X86Machine
impl Display for X86Machine
Source§impl FromStr for X86Machine
impl FromStr for X86Machine
Source§impl Hash for X86Machine
impl Hash for X86Machine
Source§impl PartialEq for X86Machine
impl PartialEq for X86Machine
impl Copy for X86Machine
impl Eq for X86Machine
impl StructuralPartialEq for X86Machine
Auto Trait Implementations§
impl Freeze for X86Machine
impl RefUnwindSafe for X86Machine
impl Send for X86Machine
impl Sync for X86Machine
impl Unpin for X86Machine
impl UnwindSafe for X86Machine
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