pub struct ArchSpec {
pub cpu_type: CpuType,
pub cpu_subtype: CpuSubtype,
}Expand description
The ArchSpec type.
Fields§
§cpu_type: CpuTypeThe cpu_type field.
cpu_subtype: CpuSubtypeThe cpu_subtype field.
Implementations§
Source§impl ArchSpec
impl ArchSpec
Sourcepub fn matches_selector(&self, selector: &str) -> bool
pub fn matches_selector(&self, selector: &str) -> bool
Returns whether a user-facing architecture selector names this slice.
A CPU-family name selects every subtype in that family, while a known
qualified slice name selects only that subtype. For example, arm64
matches both plain arm64 and arm64e slices, whereas arm64e matches
only arm64e. Names are matched case-insensitively to preserve the CLI’s
established behavior. Unknown subtype names retain the family spelling
and require an exact raw tuple where unambiguous identity matters.
Sourcepub fn is_x86_64h(&self) -> bool
pub fn is_x86_64h(&self) -> bool
Whether this is the Haswell-qualified x86-64 slice known as x86_64h.
Trait Implementations§
impl Copy for ArchSpec
impl Eq for ArchSpec
impl StructuralPartialEq for ArchSpec
Auto Trait Implementations§
impl Freeze for ArchSpec
impl RefUnwindSafe for ArchSpec
impl Send for ArchSpec
impl Sync for ArchSpec
impl Unpin for ArchSpec
impl UnsafeUnpin for ArchSpec
impl UnwindSafe for ArchSpec
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