Struct cton_reader::TestCommand
[−]
[src]
pub struct TestCommand<'a> { pub command: &'a str, pub options: Vec<TestOption<'a>>, }
A command appearing in a test file.
Fields
command: &'a str
The command name as a string.
options: Vec<TestOption<'a>>
The options following the command name.
Methods
impl<'a> TestCommand<'a>
[src]
fn new(s: &'a str) -> TestCommand<'a>
[src]
Create a new TestCommand by parsing s
.
The returned command contains references into s
.
Trait Implementations
impl<'a> Clone for TestCommand<'a>
[src]
fn clone(&self) -> TestCommand<'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 TestCommand<'a>
[src]
fn eq(&self, __arg_0: &TestCommand<'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: &TestCommand<'a>) -> bool
[src]
This method tests for !=
.