Enum quest_bind::QuestError
source · pub enum QuestError {
InvalidQuESTInputError {
err_msg: String,
err_func: String,
},
NulError(NulError),
IntoStringError(IntoStringError),
ArrayLengthError,
QubitIndexError,
NotDensityMatrix,
NegativeProbability,
}Variants§
InvalidQuESTInputError
An exception thrown by the C library. From QuEST documentation:
An internal function is called when invalid arguments are passed to a QuEST API call, which the user can optionally override by redefining. This function is a weak symbol, so that users can choose how input errors are handled, by redefining it in their own code. Users must ensure that the triggered API call does not continue (e.g. the user exits or throws an exception), else QuEST will continue with the valid input and likely trigger a seg-fault. This function is triggered before any internal state-change, hence it is safe to interrupt with exceptions.
See also invalidQuESTInputError().
NulError(NulError)
IntoStringError(IntoStringError)
ArrayLengthError
QubitIndexError
NotDensityMatrix
NegativeProbability
Trait Implementations§
source§impl Clone for QuestError
impl Clone for QuestError
source§fn clone(&self) -> QuestError
fn clone(&self) -> QuestError
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 QuestError
impl Debug for QuestError
source§impl PartialEq<QuestError> for QuestError
impl PartialEq<QuestError> for QuestError
source§fn eq(&self, other: &QuestError) -> bool
fn eq(&self, other: &QuestError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for QuestError
Auto Trait Implementations§
impl RefUnwindSafe for QuestError
impl Send for QuestError
impl Sync for QuestError
impl Unpin for QuestError
impl UnwindSafe for QuestError
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