Enum nyx_space::md::TargetingError
source · pub enum TargetingError {
UnderdeterminedProblem,
VariableError(String),
FrameError(String),
UnsupportedVariable(Variable),
Verification(String),
}
Variants§
UnderdeterminedProblem
Raised if the variables to be adjusted lead to an under-determined of the problem for the targeter
VariableError(String)
Raised if the variables of the problem are incorrectly configured
FrameError(String)
Raised in case of a targeting frame error
UnsupportedVariable(Variable)
Raised if the targeted was configured with a variable that isn’t supported (e.g. a maneuver alpha variable in the multiple shooting)
Verification(String)
Raised when the verification of a solution has failed
Trait Implementations§
source§impl Clone for TargetingError
impl Clone for TargetingError
source§fn clone(&self) -> TargetingError
fn clone(&self) -> TargetingError
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 TargetingError
impl Debug for TargetingError
source§impl Display for TargetingError
impl Display for TargetingError
source§impl Error for TargetingError
impl Error for TargetingError
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<TargetingError> for NyxError
impl From<TargetingError> for NyxError
source§fn from(e: TargetingError) -> Self
fn from(e: TargetingError) -> Self
Converts to this type from the input type.
source§impl PartialEq<TargetingError> for TargetingError
impl PartialEq<TargetingError> for TargetingError
source§fn eq(&self, other: &TargetingError) -> bool
fn eq(&self, other: &TargetingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetingError
Auto Trait Implementations§
impl RefUnwindSafe for TargetingError
impl Send for TargetingError
impl Sync for TargetingError
impl Unpin for TargetingError
impl UnwindSafe for TargetingError
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere T: Display,
§fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize.
Decorates Vecs with square brackets and tuples with round ones.
Implementation code is in
printing.rs
. §fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize in minimal form (space separated, no brackets)
Implementation code is in
printing.rs
.§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.