pub struct Sketch3dDiagnostics {
pub dof: i64,
pub rank: i64,
pub unknowns: i64,
pub equations: i64,
pub redundant: i64,
pub status: String,
pub conflicting: bool,
pub conflicting_constraints: Vec<String>,
pub point_mobility: BTreeMap<String, String>,
pub geometry_mobility: BTreeMap<String, String>,
pub iterations: i64,
pub max_residual: f64,
}Expand description
The solver’s read-only diagnostics: the same shape the 2D sketch solver
publishes (dof, rank, unknowns, equations, redundant, status,
conflicting, conflictingConstraints, pointMobility,
geometryMobility), so the editor’s readouts are shared.
Fields§
§dof: i64§rank: i64§unknowns: i64§equations: i64§redundant: i64§status: String"well", "under" or "over".
conflicting: bool§conflicting_constraints: Vec<String>The constraints (as id_key strings) still violated at the
least-squares rest point. Empty exactly when conflicting is clear.
point_mobility: BTreeMap<String, String>id_key -> "movable" | "locked" per point.
geometry_mobility: BTreeMap<String, String>§iterations: i64Accepted Levenberg-Marquardt steps.
max_residual: f64The worst residual row at the solution, in length units.
Implementations§
Source§impl Sketch3dDiagnostics
impl Sketch3dDiagnostics
pub fn point_movable(&self, id: &Value) -> Option<bool>
pub fn geometry_movable(&self, id: &Value) -> Option<bool>
pub fn constraint_conflicting(&self, id: &Value) -> bool
Trait Implementations§
Source§impl Clone for Sketch3dDiagnostics
impl Clone for Sketch3dDiagnostics
Source§fn clone(&self) -> Sketch3dDiagnostics
fn clone(&self) -> Sketch3dDiagnostics
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 moreSource§impl Debug for Sketch3dDiagnostics
impl Debug for Sketch3dDiagnostics
Source§impl Default for Sketch3dDiagnostics
impl Default for Sketch3dDiagnostics
Source§fn default() -> Sketch3dDiagnostics
fn default() -> Sketch3dDiagnostics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Sketch3dDiagnostics
impl<'de> Deserialize<'de> for Sketch3dDiagnostics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sketch3dDiagnostics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sketch3dDiagnostics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Sketch3dDiagnostics
impl PartialEq for Sketch3dDiagnostics
Source§impl Serialize for Sketch3dDiagnostics
impl Serialize for Sketch3dDiagnostics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Sketch3dDiagnostics
Auto Trait Implementations§
impl Forget for Sketch3dDiagnostics
impl Freeze for Sketch3dDiagnostics
impl Move for Sketch3dDiagnostics
impl RefUnwindSafe for Sketch3dDiagnostics
impl Send for Sketch3dDiagnostics
impl Sync for Sketch3dDiagnostics
impl Unpin for Sketch3dDiagnostics
impl UnsafeUnpin for Sketch3dDiagnostics
impl UnwindSafe for Sketch3dDiagnostics
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
Mutably borrows from an owned value. Read more