#[non_exhaustive]
pub enum StateInitializationError {
InvalidParameterNormalDistribution(NormalError),
IncompatibleSize,
LatticeInitializationError(LatticeInitializationError),
GaussProjectionError,
}
Expand description
Error while initializing a state
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.
InvalidParameterNormalDistribution(NormalError)
The parameter given for the normal distribution is incorrect.
IncompatibleSize
Size of lattice and data are incompatible
LatticeInitializationError(LatticeInitializationError)
GaussProjectionError
Gauss projection failed
Trait Implementations§
source§impl Clone for StateInitializationError
impl Clone for StateInitializationError
source§fn clone(&self) -> StateInitializationError
fn clone(&self) -> StateInitializationError
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 StateInitializationError
impl Debug for StateInitializationError
source§impl Display for StateInitializationError
impl Display for StateInitializationError
source§impl Error for StateInitializationError
impl Error for StateInitializationError
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<Error> for StateInitializationError
impl From<Error> for StateInitializationError
source§fn from(err: NormalError) -> Self
fn from(err: NormalError) -> Self
Converts to this type from the input type.
source§impl<State> From<ErrorWithOwnedValue<StateInitializationError, State>> for StateInitializationError
impl<State> From<ErrorWithOwnedValue<StateInitializationError, State>> for StateInitializationError
source§fn from(data: ErrorWithOwnedValue<StateInitializationError, State>) -> Self
fn from(data: ErrorWithOwnedValue<StateInitializationError, State>) -> Self
Converts to this type from the input type.
source§impl From<LatticeInitializationError> for StateInitializationError
impl From<LatticeInitializationError> for StateInitializationError
source§fn from(err: LatticeInitializationError) -> Self
fn from(err: LatticeInitializationError) -> Self
Converts to this type from the input type.
source§impl From<StateInitializationError> for ThreadedStateInitializationError
impl From<StateInitializationError> for ThreadedStateInitializationError
source§fn from(err: StateInitializationError) -> Self
fn from(err: StateInitializationError) -> Self
Converts to this type from the input type.
source§impl PartialEq<StateInitializationError> for StateInitializationError
impl PartialEq<StateInitializationError> for StateInitializationError
source§fn eq(&self, other: &StateInitializationError) -> bool
fn eq(&self, other: &StateInitializationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StateInitializationError
impl Eq for StateInitializationError
impl StructuralEq for StateInitializationError
impl StructuralPartialEq for StateInitializationError
Auto Trait Implementations§
impl RefUnwindSafe for StateInitializationError
impl Send for StateInitializationError
impl Sync for StateInitializationError
impl Unpin for StateInitializationError
impl UnwindSafe for StateInitializationError
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.