Enum cton_reader::TestOption
[−]
[src]
pub enum TestOption<'a> { Flag(&'a str), Value(&'a str, &'a str), }
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]
fn new(s: &'a str) -> TestOption<'a>
[src]
Create a new TestOption by parsing s
.
The returned option contains references into s
.
Trait Implementations
impl<'a> Clone for TestOption<'a>
[src]
fn clone(&self) -> TestOption<'a>
[src]
Returns a copy of the value. Read more
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]
fn eq(&self, __arg_0: &TestOption<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TestOption<'a>) -> bool
[src]
This method tests for !=
.