#[non_exhaustive]
pub enum DirectionConversionError {
IndexOutOfBound,
}
Expand description
Error return by TryFrom
for Directions.
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.
IndexOutOfBound
The index is out of bound, i.e. the direction axis does not exist in the lower space dimension.
Trait Implementations§
source§impl Clone for DirectionConversionError
impl Clone for DirectionConversionError
source§fn clone(&self) -> DirectionConversionError
fn clone(&self) -> DirectionConversionError
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 DirectionConversionError
impl Debug for DirectionConversionError
source§impl<'de> Deserialize<'de> for DirectionConversionError
impl<'de> Deserialize<'de> for DirectionConversionError
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 DirectionConversionError
impl Display for DirectionConversionError
source§impl Error for DirectionConversionError
impl Error for DirectionConversionError
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 Hash for DirectionConversionError
impl Hash for DirectionConversionError
source§impl PartialEq<DirectionConversionError> for DirectionConversionError
impl PartialEq<DirectionConversionError> for DirectionConversionError
source§fn eq(&self, other: &DirectionConversionError) -> bool
fn eq(&self, other: &DirectionConversionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DirectionConversionError
impl Serialize for DirectionConversionError
impl Copy for DirectionConversionError
impl Eq for DirectionConversionError
impl StructuralEq for DirectionConversionError
impl StructuralPartialEq for DirectionConversionError
Auto Trait Implementations§
impl RefUnwindSafe for DirectionConversionError
impl Send for DirectionConversionError
impl Sync for DirectionConversionError
impl Unpin for DirectionConversionError
impl UnwindSafe for DirectionConversionError
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.