pub struct Features(/* private fields */);
Expand description
A collection of CPU features.
An instruction is valid when any of the features in the collection are
enabled; i.e., the collection is an OR
expression.
let fs = Feature::_64b | Feature::compat;
assert_eq!(fs.to_string(), "_64b | compat");
Implementations§
Trait Implementations§
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