pub struct Features2(/* 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 Features2
impl Features2
Sourcepub const RING3MWAIT: Self
pub const RING3MWAIT: Self
MONITOR/MWAIT enabled in Ring 3
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 Features2
impl BitAndAssign<usize> for Features2
Source§fn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Features2
impl BitAndAssign for Features2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign<usize> for Features2
impl BitOrAssign<usize> for Features2
Source§fn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Features2
impl BitOrAssign for Features2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Ord for Features2
impl Ord for Features2
Source§impl PartialOrd for Features2
impl PartialOrd for Features2
impl Copy for Features2
impl Eq for Features2
impl StructuralPartialEq for Features2
Auto Trait Implementations§
impl Freeze for Features2
impl RefUnwindSafe for Features2
impl Send for Features2
impl Sync for Features2
impl Unpin for Features2
impl UnwindSafe for Features2
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