pub struct Features(/* private fields */);Available on (Linux or Android) and (x86-64 and little-endian and 64-bit, or AArch64 and 64-bit, or ARM and 32-bit, or x86 and little-endian and 32-bit), or Linux and (x86-64 and little-endian and 32-bit, or RISC-V RV64 and little-endian and 64-bit, or RISC-V RV32 and little-endian and 32-bit, or MIPS and 32-bit, or MIPS-64 and 64-bit, or s390x and big-endian and 64-bit, or LoongArch LA64 and little-endian and 64-bit, or PowerPC and big-endian and 32-bit, or PowerPC-64 and 64-bit) only.
Implementations§
Source§impl Features
impl Features
Sourcepub const C601_INSTR: Self
pub const C601_INSTR: Self
601 chip, Old POWER ISA.
Sourcepub const HAS_ALTIVEC: Self
pub const HAS_ALTIVEC: Self
SIMD/Vector Unit.
Sourcepub const HAS_4xxMAC: Self
pub const HAS_4xxMAC: Self
4xx Multiply Accumulator.
Sourcepub const UNIFIED_CACHE: Self
pub const UNIFIED_CACHE: Self
Unified I/D cache.
Sourcepub const HAS_EFP_SINGLE: Self
pub const HAS_EFP_SINGLE: Self
SPE Float.
Sourcepub const HAS_EFP_DOUBLE: Self
pub const HAS_EFP_DOUBLE: Self
SPE Double.
Sourcepub const POWER5_PLUS: Self
pub const POWER5_PLUS: Self
POWER5+ ISA 2.03
pub const ICACHE_SNOOP: Self
Sourcepub const POWER6_EXT: Self
pub const POWER6_EXT: Self
P6 + mffgpr/mftgpr
pub const PSERIES_PERFMON_COMPAT: Self
pub const TRUE_LE: Self
pub const PPC_LE: Self
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn from_bits(bits: usize) -> Self
pub const fn bits(&self) -> usize
pub const fn contains(&self, other: Self) -> bool
pub fn remove(&mut self, other: Self)
pub fn insert(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
Trait Implementations§
Source§impl BitAndAssign<usize> for Features
impl BitAndAssign<usize> for Features
Source§fn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Features
impl BitAndAssign for Features
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign<usize> for Features
impl BitOrAssign<usize> for Features
Source§fn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Features
impl BitOrAssign for Features
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Ord for Features
impl Ord for Features
Source§impl PartialOrd for Features
impl PartialOrd for Features
impl Copy for Features
impl Eq for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
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