Enum qasmsim::error::LinkerError
source · #[non_exhaustive]pub enum LinkerError {
LibraryNotFound {
location: Location,
libpath: String,
},
}
Expand description
Represent a filure during linkage.
Examples
The following typo in OPENQASM:
OPENQASM 2.0;
include "qlib.inc" // instead of "qelib1.inc"
Would cause the following error:
use qasmsim::grammar::lexer::Location;
use qasmsim::linker::LinkerError;
LinkerError::LibraryNotFound {
location: Location(14),
libpath: "qlib.inc".to_string()
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for LinkerError
impl Clone for LinkerError
source§fn clone(&self) -> LinkerError
fn clone(&self) -> LinkerError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinkerError
impl Debug for LinkerError
source§impl Hash for LinkerError
impl Hash for LinkerError
source§impl PartialEq for LinkerError
impl PartialEq for LinkerError
source§fn eq(&self, other: &LinkerError) -> bool
fn eq(&self, other: &LinkerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LinkerError
impl StructuralEq for LinkerError
impl StructuralPartialEq for LinkerError
Auto Trait Implementations§
impl RefUnwindSafe for LinkerError
impl Send for LinkerError
impl Sync for LinkerError
impl Unpin for LinkerError
impl UnwindSafe for LinkerError
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