Enum cranelift_reader::TestOption [−][src]
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.
Methods
impl<'a> TestOption<'a>[src]
impl<'a> TestOption<'a>pub fn new(s: &'a str) -> TestOption<'a>[src]
pub fn new(s: &'a str) -> TestOption<'a>Create a new TestOption by parsing s.
The returned option contains references into s.
Trait Implementations
impl<'a> Clone for TestOption<'a>[src]
impl<'a> Clone for TestOption<'a>fn clone(&self) -> TestOption<'a>[src]
fn clone(&self) -> TestOption<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> PartialEq for TestOption<'a>[src]
impl<'a> PartialEq for TestOption<'a>fn eq(&self, other: &TestOption<'a>) -> bool[src]
fn eq(&self, other: &TestOption<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TestOption<'a>) -> bool[src]
fn ne(&self, other: &TestOption<'a>) -> boolThis method tests for !=.
impl<'a> Eq for TestOption<'a>[src]
impl<'a> Eq for TestOption<'a>impl<'a> Debug for TestOption<'a>[src]
impl<'a> Debug for TestOption<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Display for TestOption<'a>[src]
impl<'a> Display for TestOption<'a>Auto Trait Implementations
impl<'a> Send for TestOption<'a>
impl<'a> Send for TestOption<'a>impl<'a> Sync for TestOption<'a>
impl<'a> Sync for TestOption<'a>