#[non_exhaustive]pub enum AnalysisError {
Show 13 variants
Domain {
what: &'static str,
value: f64,
},
Count {
what: &'static str,
count: usize,
limit: usize,
},
TooFew {
what: &'static str,
count: usize,
minimum: usize,
},
Length {
what: &'static str,
length: usize,
expected: usize,
},
Output {
index: usize,
value: f64,
},
DuplicateFactor(String),
DuplicateVariable(String),
OutOfBounds {
draws: usize,
},
NoConfiguration(String),
Unsupported(String),
Design(DesignError),
Motor(MotorError),
Sim(SimError),
}Expand description
What an analysis refuses or can’t do.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Domain
A number outside the range it is defined on.
Count
A count larger than it can be.
TooFew
Too few of something for what was asked.
Fields
Length
A list of the wrong length.
Fields
Output
A model’s output that can’t be used: one that isn’t finite at the given point of a
sensitivity design, or a NaN or −∞ at the given evaluation of an optimizer’s run, both
counted from 0.
DuplicateFactor(String)
Two sensitivity factors with one name, which would make their results ambiguous.
DuplicateVariable(String)
Two optimization variables with one name, which would make the result ambiguous.
OutOfBounds
A first candidate of an optimizer that didn’t fall inside the variables’ bounds in the draws allowed: the steps are too large for the bounds, or the starts too close to them.
NoConfiguration(String)
A rocket configuration the design doesn’t have.
Unsupported(String)
Something the analysis has no model for.
Design(DesignError)
From the design.
Motor(MotorError)
From a motor.
Sim(SimError)
From a flight.
Trait Implementations§
Source§impl Debug for AnalysisError
impl Debug for AnalysisError
Source§impl Display for AnalysisError
impl Display for AnalysisError
Source§impl Error for AnalysisError
impl Error for AnalysisError
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 From<DesignError> for AnalysisError
impl From<DesignError> for AnalysisError
Source§fn from(source: DesignError) -> Self
fn from(source: DesignError) -> Self
Source§impl From<MotorError> for AnalysisError
impl From<MotorError> for AnalysisError
Source§fn from(source: MotorError) -> Self
fn from(source: MotorError) -> Self
Auto Trait Implementations§
impl Freeze for AnalysisError
impl RefUnwindSafe for AnalysisError
impl Send for AnalysisError
impl Sync for AnalysisError
impl Unpin for AnalysisError
impl UnsafeUnpin for AnalysisError
impl UnwindSafe for AnalysisError
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> 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 more