pub enum OpenQASMError {
FileError,
TokenError,
SyntaxError,
SemanticError(SemanticError),
}
Expand description
The different errors that can occur when parsing an openqasm program
Variants§
FileError
The file(or some included file) could not be opened.
TokenError
The program contains some invalid token.
SyntaxError
The program contains a syntactic error.
SemanticError(SemanticError)
The program contains a semantic error. It contains a SemanticError which gives more precise information about what kind of semantic error occured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenQASMError
impl RefUnwindSafe for OpenQASMError
impl Send for OpenQASMError
impl Sync for OpenQASMError
impl Unpin for OpenQASMError
impl UnwindSafe for OpenQASMError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more