Enum cranelift_reader::TestOption
source · pub enum TestOption<'a> {
Flag(&'a str),
Value(&'a str, &'a str),
}
Expand description
An option on a test command.
Variants§
Flag(&'a str)
Single identifier flag: foo
.
Value(&'a str, &'a str)
A value assigned to an identifier: foo=bar
.
Implementations§
Trait Implementations§
source§impl<'a> Clone for TestOption<'a>
impl<'a> Clone for TestOption<'a>
source§fn clone(&self) -> TestOption<'a>
fn clone(&self) -> TestOption<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for TestOption<'a>
impl<'a> Debug for TestOption<'a>
source§impl<'a> Display for TestOption<'a>
impl<'a> Display for TestOption<'a>
source§impl<'a> PartialEq for TestOption<'a>
impl<'a> PartialEq for TestOption<'a>
source§fn eq(&self, other: &TestOption<'a>) -> bool
fn eq(&self, other: &TestOption<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for TestOption<'a>
impl<'a> StructuralEq for TestOption<'a>
impl<'a> StructuralPartialEq for TestOption<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TestOption<'a>
impl<'a> Send for TestOption<'a>
impl<'a> Sync for TestOption<'a>
impl<'a> Unpin for TestOption<'a>
impl<'a> UnwindSafe for TestOption<'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
§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
§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
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