Struct cranelift_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]
impl<'a> TestCommand<'a>
pub fn new(s: &'a str) -> TestCommand<'a>
[src]
pub fn new(s: &'a str) -> TestCommand<'a>
Create a new TestCommand by parsing s
.
The returned command contains references into s
.
Trait Implementations
impl<'a> Clone for TestCommand<'a>
[src]
impl<'a> Clone for TestCommand<'a>
fn clone(&self) -> TestCommand<'a>
[src]
fn clone(&self) -> TestCommand<'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 TestCommand<'a>
[src]
impl<'a> PartialEq for TestCommand<'a>
fn eq(&self, other: &TestCommand<'a>) -> bool
[src]
fn eq(&self, other: &TestCommand<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TestCommand<'a>) -> bool
[src]
fn ne(&self, other: &TestCommand<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for TestCommand<'a>
[src]
impl<'a> Eq for TestCommand<'a>
impl<'a> Debug for TestCommand<'a>
[src]
impl<'a> Debug for TestCommand<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Display for TestCommand<'a>
[src]
impl<'a> Display for TestCommand<'a>
Auto Trait Implementations
impl<'a> Send for TestCommand<'a>
impl<'a> Send for TestCommand<'a>
impl<'a> Sync for TestCommand<'a>
impl<'a> Sync for TestCommand<'a>