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>
impl<'a> Eq for TestOption<'a>
impl<'a> StructuralPartialEq for TestOption<'a>
Auto Trait Implementations§
impl<'a> Freeze for TestOption<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.