pub enum Chip {
X86,
X64,
Arm,
Arm64,
}Expand description
The architectures Microsoft ships a CRT for, spelled the way each document spells them.
Two spellings, because the package ids and the SDK installer names disagree about case and
about arm64. That is not a thing to normalise away: both are keys into somebody else’s
document and a key is what it is.
Variants§
Implementations§
Source§impl Chip
impl Chip
Sourcepub const fn of(target: TargetTuple) -> Option<Self>
pub const fn of(target: TargetTuple) -> Option<Self>
Which chip a target is, or None for a target Microsoft ships nothing for.
ARM64EC has no answer here on purpose. It is tier 4 in
spec/cross-compile/04-target-matrix.md, nothing in this compiler emits code for it, and
the manifest’s ARM64EC packages are a few kilobytes of thunks rather than a C library.
Sourcepub const fn in_package(self) -> &'static str
pub const fn in_package(self) -> &'static str
How a Visual C++ package id spells it.
Sourcepub const fn in_installer(self) -> &'static str
pub const fn in_installer(self) -> &'static str
How a Windows SDK installer name spells it.
Trait Implementations§
impl Copy for Chip
impl Eq for Chip
Source§impl Ord for Chip
impl Ord for Chip
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Chip
impl PartialOrd for Chip
impl StructuralPartialEq for Chip
Auto Trait Implementations§
impl Freeze for Chip
impl RefUnwindSafe for Chip
impl Send for Chip
impl Sync for Chip
impl Unpin for Chip
impl UnsafeUnpin for Chip
impl UnwindSafe for Chip
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