pub enum AtmosphereError {
MissingApArray,
NonFiniteInput(&'static str),
OutOfDomain(&'static str),
}Expand description
Error returned when an evaluation cannot be performed for the requested inputs or switch configuration.
The model itself is total: it will emit a number for any input. These variants guard the API boundary so a misconfigured call surfaces a typed failure instead of a plausible-but-wrong or non-finite result.
Variants§
MissingApArray
Switch 9 is set to -1 (Ap-history mode) but NrlmsiseInput::ap_array
was not supplied. There is no defensible default Ap history, so the call
is rejected rather than silently substituting zeros.
NonFiniteInput(&'static str)
A model input was not finite (NaN or infinity). The offending field name is carried for diagnostics.
OutOfDomain(&'static str)
A model input was outside the documented valid domain (altitude in
[0, MAX_ALTITUDE_KM]; f107, f107a, ap, and every ap_array
element finite and non-negative). The offending field name is carried.
Trait Implementations§
Source§impl Clone for AtmosphereError
impl Clone for AtmosphereError
Source§fn clone(&self) -> AtmosphereError
fn clone(&self) -> AtmosphereError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AtmosphereError
Source§impl Debug for AtmosphereError
impl Debug for AtmosphereError
Source§impl Display for AtmosphereError
impl Display for AtmosphereError
impl Eq for AtmosphereError
Source§impl Error for AtmosphereError
impl Error for AtmosphereError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for AtmosphereError
impl PartialEq for AtmosphereError
Source§fn eq(&self, other: &AtmosphereError) -> bool
fn eq(&self, other: &AtmosphereError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AtmosphereError
Auto Trait Implementations§
impl Freeze for AtmosphereError
impl RefUnwindSafe for AtmosphereError
impl Send for AtmosphereError
impl Sync for AtmosphereError
impl Unpin for AtmosphereError
impl UnsafeUnpin for AtmosphereError
impl UnwindSafe for AtmosphereError
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.