pub enum ArchVariant {
None,
Riscv(RiscvIsa),
Armv7(Armv7Variant),
Aarch64(Aarch64Level),
PowerPC64(PowerLevel),
X86(X86CpuLevel),
}Expand description
The sub-architecture a target selected, for the families that have one.
Variants§
None
The architecture has no sub-architecture axis, or the target named none.
Riscv(RiscvIsa)
Armv7(Armv7Variant)
Aarch64(Aarch64Level)
PowerPC64(PowerLevel)
X86(X86CpuLevel)
Implementations§
Source§impl ArchVariant
impl ArchVariant
pub fn riscv(self) -> Option<RiscvIsa>
pub fn armv7(self) -> Option<Armv7Variant>
pub fn aarch64(self) -> Option<Aarch64Level>
pub fn x86(self) -> Option<X86CpuLevel>
Sourcepub fn refine(self, spec: ArchSpec) -> ArchSpec
pub fn refine(self, spec: ArchSpec) -> ArchSpec
The architecture’s spec as this variant refines it.
The single place a sub-architecture changes a property the architecture stated.
A RISC-V ISA without d is the soft-float ABI, which takes a different ELF
interpreter than the one the bare architecture names.
pub fn powerpc64(self) -> Option<PowerLevel>
Trait Implementations§
Source§impl Clone for ArchVariant
impl Clone for ArchVariant
impl Copy for ArchVariant
Source§impl Debug for ArchVariant
impl Debug for ArchVariant
Source§impl Default for ArchVariant
impl Default for ArchVariant
Source§impl Display for ArchVariant
impl Display for ArchVariant
impl Eq for ArchVariant
Source§impl PartialEq for ArchVariant
impl PartialEq for ArchVariant
impl StructuralPartialEq for ArchVariant
Auto Trait Implementations§
impl Freeze for ArchVariant
impl RefUnwindSafe for ArchVariant
impl Send for ArchVariant
impl Sync for ArchVariant
impl Unpin for ArchVariant
impl UnsafeUnpin for ArchVariant
impl UnwindSafe for ArchVariant
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