pub enum AnalysisErrorDetail {
FailedToConverge {
step: usize,
},
SingularSystem,
InvalidConstraint,
InvalidModeCount {
requested: usize,
free_dofs: usize,
},
InvalidOption {
field: &'static str,
},
UnsupportedLoadSeries,
ZeroLoadSensitivity,
InitialStateNotInEquilibrium {
measure: f64,
},
MissingSeedDirection,
CutbacksExhausted {
step: usize,
attempts: usize,
radius: f64,
last_failure: ArcFailureDetail,
},
ContinuationComplete,
InvalidModel {
error: ModelErrorDetail,
},
}Expand description
AnalysisError’s fields, restated so advance’s result doesn’t need to
name carapace_core’s error type directly — kept in the same tagged-
variant style.
Variants§
FailedToConverge
SingularSystem
InvalidConstraint
InvalidModeCount
InvalidOption
A configuration value is out of range or unsupported in combination
(field is its wire spelling). Decode rejects these up front; this
covers anything only detectable once the model is known (e.g. a
missing rotation scale for a model with rotational DOFs).
UnsupportedLoadSeries
Arc length found an unfrozen path load series.
ZeroLoadSensitivity
Arc length has no reference load to continue.
InitialStateNotInEquilibrium
Arc length must start from equilibrium; measure is the force-test
measure at entry.
MissingSeedDirection
The first arc-length tangent is singular and no seed was given.
CutbacksExhausted
Every arc-length attempt for step failed.
ContinuationComplete
An arc-length stop criterion already ended the stage.
InvalidModel
The model failed core’s Domain::validate when the stage started,
for example a nodal load registered by this stage on a DOF nothing
uses.
Fields
error: ModelErrorDetailTrait Implementations§
Source§impl Clone for AnalysisErrorDetail
impl Clone for AnalysisErrorDetail
Source§fn clone(&self) -> AnalysisErrorDetail
fn clone(&self) -> AnalysisErrorDetail
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 AnalysisErrorDetail
Source§impl Debug for AnalysisErrorDetail
impl Debug for AnalysisErrorDetail
Source§impl From<AnalysisError> for AnalysisErrorDetail
impl From<AnalysisError> for AnalysisErrorDetail
Source§impl PartialEq for AnalysisErrorDetail
impl PartialEq for AnalysisErrorDetail
Source§impl Serialize for AnalysisErrorDetail
impl Serialize for AnalysisErrorDetail
impl StructuralPartialEq for AnalysisErrorDetail
Source§impl Tsify for AnalysisErrorDetail
impl Tsify for AnalysisErrorDetail
const DECL: &'static str = "/**\n * `AnalysisError`\'s fields, restated so `advance`\'s result doesn\'t need to\n * name `carapace_core`\'s error type directly \u{2014} kept in the same tagged-\n * variant style.\n */\nexport type AnalysisErrorDetail = { kind: \"failedToConverge\"; step: number } | { kind: \"singularSystem\" } | { kind: \"invalidConstraint\" } | { kind: \"invalidModeCount\"; requested: number; freeDofs: number } | { kind: \"invalidOption\"; field: string } | { kind: \"unsupportedLoadSeries\" } | { kind: \"zeroLoadSensitivity\" } | { kind: \"initialStateNotInEquilibrium\"; measure: number } | { kind: \"missingSeedDirection\" } | { kind: \"cutbacksExhausted\"; step: number; attempts: number; radius: number; lastFailure: ArcFailureDetail } | { kind: \"continuationComplete\" } | { kind: \"invalidModel\"; error: ModelErrorDetail };"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Auto Trait Implementations§
impl Freeze for AnalysisErrorDetail
impl RefUnwindSafe for AnalysisErrorDetail
impl Send for AnalysisErrorDetail
impl Sync for AnalysisErrorDetail
impl Unpin for AnalysisErrorDetail
impl UnsafeUnpin for AnalysisErrorDetail
impl UnwindSafe for AnalysisErrorDetail
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T, U> Imply<T> for U
impl<T> Scalar 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>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.