pub enum AmariError {
Core(CoreError),
Automata(AutomataError),
Enumerative(EnumerativeError),
InfoGeom(InfoGeomError),
Network(NetworkError),
Fusion(FusionError),
Tropical(TropicalError),
Dual(DualError),
}Expand description
Unified error type for the Amari library
Variants§
Core(CoreError)
Core geometric algebra error
Automata(AutomataError)
Automata error
Enumerative(EnumerativeError)
Enumerative geometry error
InfoGeom(InfoGeomError)
Information geometry error
Network(NetworkError)
Network analysis error
Fusion(FusionError)
Fusion system error
Tropical(TropicalError)
Tropical algebra error
Dual(DualError)
Dual number error
Trait Implementations§
Source§impl Debug for AmariError
impl Debug for AmariError
Source§impl Display for AmariError
impl Display for AmariError
Source§impl Error for AmariError
impl Error for AmariError
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()
Source§impl From<AutomataError> for AmariError
impl From<AutomataError> for AmariError
Source§fn from(err: AutomataError) -> Self
fn from(err: AutomataError) -> Self
Converts to this type from the input type.
Source§impl From<CoreError> for AmariError
impl From<CoreError> for AmariError
Source§impl From<DualError> for AmariError
impl From<DualError> for AmariError
Source§impl From<EnumerativeError> for AmariError
impl From<EnumerativeError> for AmariError
Source§fn from(source: EnumerativeError) -> Self
fn from(source: EnumerativeError) -> Self
Converts to this type from the input type.
Source§impl From<FusionError> for AmariError
impl From<FusionError> for AmariError
Source§fn from(source: FusionError) -> Self
fn from(source: FusionError) -> Self
Converts to this type from the input type.
Source§impl From<InfoGeomError> for AmariError
impl From<InfoGeomError> for AmariError
Source§fn from(source: InfoGeomError) -> Self
fn from(source: InfoGeomError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for AmariError
impl From<NetworkError> for AmariError
Source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<TropicalError> for AmariError
impl From<TropicalError> for AmariError
Source§fn from(source: TropicalError) -> Self
fn from(source: TropicalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AmariError
impl RefUnwindSafe for AmariError
impl Send for AmariError
impl Sync for AmariError
impl Unpin for AmariError
impl UnwindSafe for AmariError
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.