Enum quil_rs::program::ProgramError
source · pub enum ProgramError {
ParsingError(ParseProgramError<Program>),
UnsupportedOperation(Instruction),
RecursiveCalibration(Instruction),
GateError(GateError),
UnsupportedForUnitary(Instruction),
}
Variants§
ParsingError(ParseProgramError<Program>)
UnsupportedOperation(Instruction)
RecursiveCalibration(Instruction)
GateError(GateError)
UnsupportedForUnitary(Instruction)
Trait Implementations§
source§impl Debug for ProgramError
impl Debug for ProgramError
source§impl Display for ProgramError
impl Display for ProgramError
source§impl Error for ProgramError
impl Error for ProgramError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<GateError> for ProgramError
impl From<GateError> for ProgramError
source§impl From<ParseProgramError<Program>> for ProgramError
impl From<ParseProgramError<Program>> for ProgramError
source§fn from(source: ParseProgramError<Program>) -> Self
fn from(source: ParseProgramError<Program>) -> Self
Converts to this type from the input type.
source§impl From<ProgramError> for BasicBlockScheduleError
impl From<ProgramError> for BasicBlockScheduleError
source§fn from(source: ProgramError) -> Self
fn from(source: ProgramError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProgramError
impl PartialEq for ProgramError
source§fn eq(&self, other: &ProgramError) -> bool
fn eq(&self, other: &ProgramError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProgramError
Auto Trait Implementations§
impl Freeze for ProgramError
impl !RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl !UnwindSafe for ProgramError
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
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.