pub enum ModelErrorDetail {
LoadOnInactiveDof {
node: usize,
dof: usize,
},
DuplicateSlave {
node: usize,
dof: usize,
},
SlaveIsFixed {
node: usize,
dof: usize,
},
ConstraintCycle {
node: usize,
dof: usize,
},
ConstraintOnPrescribedDof {
node: usize,
dof: usize,
},
InconsistentInitialState {
node: usize,
dof: usize,
},
MassOnConstrainedDof {
node: usize,
dof: usize,
},
IncompatibleElementLoad {
element: usize,
},
InvalidElement {
element: usize,
reason: &'static str,
},
}Expand description
core::ModelError, restated for the wire. Node and element indices are
the rows of the node table and of the element tables in insertion order
(all element kinds in decode order), so a caller can map them back.
Variants§
LoadOnInactiveDof
DuplicateSlave
SlaveIsFixed
ConstraintCycle
ConstraintOnPrescribedDof
InconsistentInitialState
MassOnConstrainedDof
IncompatibleElementLoad
InvalidElement
Trait Implementations§
Source§impl Clone for ModelErrorDetail
impl Clone for ModelErrorDetail
Source§fn clone(&self) -> ModelErrorDetail
fn clone(&self) -> ModelErrorDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelErrorDetail
Source§impl Debug for ModelErrorDetail
impl Debug for ModelErrorDetail
Source§impl From<ModelError> for ModelErrorDetail
impl From<ModelError> for ModelErrorDetail
Source§impl PartialEq for ModelErrorDetail
impl PartialEq for ModelErrorDetail
Source§impl Serialize for ModelErrorDetail
impl Serialize for ModelErrorDetail
impl StructuralPartialEq for ModelErrorDetail
Source§impl Tsify for ModelErrorDetail
impl Tsify for ModelErrorDetail
const DECL: &'static str = "/**\n * `core::ModelError`, restated for the wire. Node and element indices are\n * the rows of the node table and of the element tables in insertion order\n * (all element kinds in decode order), so a caller can map them back.\n */\nexport type ModelErrorDetail = { kind: \"loadOnInactiveDof\"; node: number; dof: number } | { kind: \"duplicateSlave\"; node: number; dof: number } | { kind: \"slaveIsFixed\"; node: number; dof: number } | { kind: \"constraintCycle\"; node: number; dof: number } | { kind: \"constraintOnPrescribedDof\"; node: number; dof: number } | { kind: \"inconsistentInitialState\"; node: number; dof: number } | { kind: \"massOnConstrainedDof\"; node: number; dof: number } | { kind: \"incompatibleElementLoad\"; element: number } | { kind: \"invalidElement\"; element: number; reason: string };"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
Must be a type imported through
#[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 ModelErrorDetail
impl RefUnwindSafe for ModelErrorDetail
impl Send for ModelErrorDetail
impl Sync for ModelErrorDetail
impl Unpin for ModelErrorDetail
impl UnsafeUnpin for ModelErrorDetail
impl UnwindSafe for ModelErrorDetail
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
Mutably borrows from an owned value. Read more
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>
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.