pub enum Features {
And(Box<Features>, Box<Features>),
Or(Box<Features>, Box<Features>),
Feature(Feature),
}
Expand description
A boolean term of CPU features.
An instruction is valid when the boolean term (a recursive tree of AND
and
OR
terms) is satisfied.
let fs = Feature::_64b | Feature::compat;
assert_eq!(fs.to_string(), "(_64b | compat)");
Variants§
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