Enum qasm::Error
[−]
[src]
pub enum Error { MissingSemicolon, UnsupportedVersion, SourceError, MissingReal, MissingInt, MissingIdentifier, MissingVersion, }
Represents Errors that can occur during parsing.
The name of each corresponds to the type of error. This enum implements the display trait, thus there is nice outputs when printing:
extern crate qasm; println!("Got an error: {}", qasm::Error::UnsupportedVersion); // "Got an error: Unsupported Version. Please Use OpenQASM Version 2.0"
Variants
MissingSemicolon
UnsupportedVersion
SourceError
MissingReal
MissingInt
MissingIdentifier
MissingVersion
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Error
[src]
fn clone(&self) -> Error
[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