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

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error