Enum cranelift_reader::Feature
source · pub enum Feature<'a> {
With(&'a str),
Without(&'a str),
}
Expand description
A cranelift feature in a test file preamble.
This represents the expectation of the test case. Before running any of the functions of the test file, the feature set should be compared with the feature set used to compile Cranelift. If there is any differences, then the test file should be skipped.
Variants§
Trait Implementations§
source§impl<'a> PartialEq<Feature<'a>> for Feature<'a>
impl<'a> PartialEq<Feature<'a>> for Feature<'a>
impl<'a> Eq for Feature<'a>
impl<'a> StructuralEq for Feature<'a>
impl<'a> StructuralPartialEq for Feature<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Feature<'a>
impl<'a> Send for Feature<'a>
impl<'a> Sync for Feature<'a>
impl<'a> Unpin for Feature<'a>
impl<'a> UnwindSafe for Feature<'a>
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more