#[repr(i32)]pub enum KetError {
Show 20 variants
Success = 0,
MaxQubitsReached = 1,
TerminatedProcess = 2,
InverseScope = 3,
ControlledScope = 4,
QubitUnavailable = 5,
ControlTargetOverlap = 6,
ControlTwice = 7,
MeasurementDisabled = 8,
ControlStackEmpty = 9,
InverseScopeEmpty = 10,
ResultDataMismatch = 11,
ControlStackNotEmpty = 12,
ControlStackRemovePrimary = 13,
AuxQubitNotAvailable = 14,
AuxQubitNotAllowed = 15,
GradientDisabled = 16,
ControlledParameter = 17,
UncomputeFaill = 18,
NoInInteractionGroup = 19,
}
Variants§
Success = 0
MaxQubitsReached = 1
TerminatedProcess = 2
InverseScope = 3
ControlledScope = 4
ControlTargetOverlap = 6
ControlTwice = 7
MeasurementDisabled = 8
ControlStackEmpty = 9
InverseScopeEmpty = 10
ResultDataMismatch = 11
ControlStackNotEmpty = 12
ControlStackRemovePrimary = 13
AuxQubitNotAvailable = 14
AuxQubitNotAllowed = 15
GradientDisabled = 16
ControlledParameter = 17
UncomputeFaill = 18
NoInInteractionGroup = 19
Implementations§
Trait Implementations§
Source§impl Error for KetError
impl Error for KetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl Copy for KetError
Auto Trait Implementations§
impl Freeze for KetError
impl RefUnwindSafe for KetError
impl Send for KetError
impl Sync for KetError
impl Unpin for KetError
impl UnwindSafe for KetError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more