#[non_exhaustive]
pub enum LatticeInitializationError {
NonPositiveSize,
DimTooSmall,
ZeroDimension,
}
Expand description
Error while initializing a lattice
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.
NonPositiveSize
size
must be strictly greater 0 than and be a finite number.
DimTooSmall
dim
must be greater than 2.
ZeroDimension
the dimension parameter D = 0
is not valid.
Trait Implementations§
source§impl Clone for LatticeInitializationError
impl Clone for LatticeInitializationError
source§fn clone(&self) -> LatticeInitializationError
fn clone(&self) -> LatticeInitializationError
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 LatticeInitializationError
impl Debug for LatticeInitializationError
source§impl<'de> Deserialize<'de> for LatticeInitializationError
impl<'de> Deserialize<'de> for LatticeInitializationError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LatticeInitializationError
impl Display for LatticeInitializationError
source§impl Error for LatticeInitializationError
impl Error for LatticeInitializationError
1.30.0 · 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<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 Hash for LatticeInitializationError
impl Hash for LatticeInitializationError
source§impl PartialEq<LatticeInitializationError> for LatticeInitializationError
impl PartialEq<LatticeInitializationError> for LatticeInitializationError
source§fn eq(&self, other: &LatticeInitializationError) -> bool
fn eq(&self, other: &LatticeInitializationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LatticeInitializationError
impl Eq for LatticeInitializationError
impl StructuralEq for LatticeInitializationError
impl StructuralPartialEq for LatticeInitializationError
Auto Trait Implementations§
impl RefUnwindSafe for LatticeInitializationError
impl Send for LatticeInitializationError
impl Sync for LatticeInitializationError
impl Unpin for LatticeInitializationError
impl UnwindSafe for LatticeInitializationError
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.