pub struct MassPropertyError {
pub child: Option<usize>,
pub issue: MassPropertyIssue,
}Expand description
A mass-construction failure, with the zero-based input child when known.
child == None identifies a compound-wide failure, such as zero total mass
or a singular combined inertia. This error also converts to the existing
PhysicsError categories used by world insertion and mass refresh.
Fields§
§child: Option<usize>Zero-based input child, or None for a failure of the combined result.
issue: MassPropertyIssueThe failed validation or calculation stage.
Trait Implementations§
Source§impl Clone for MassPropertyError
impl Clone for MassPropertyError
Source§fn clone(&self) -> MassPropertyError
fn clone(&self) -> MassPropertyError
Returns a duplicate 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 MassPropertyError
impl Debug for MassPropertyError
Source§impl Display for MassPropertyError
impl Display for MassPropertyError
Source§impl Error for MassPropertyError
impl Error for MassPropertyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<MassPropertyError> for PhysicsError
impl From<MassPropertyError> for PhysicsError
Source§fn from(error: MassPropertyError) -> PhysicsError
fn from(error: MassPropertyError) -> PhysicsError
Converts to this type from the input type.
Source§impl From<MassPropertyIssue> for MassPropertyError
impl From<MassPropertyIssue> for MassPropertyError
Source§fn from(issue: MassPropertyIssue) -> MassPropertyError
fn from(issue: MassPropertyIssue) -> MassPropertyError
Converts to this type from the input type.
Source§impl PartialEq for MassPropertyError
impl PartialEq for MassPropertyError
impl Copy for MassPropertyError
impl Eq for MassPropertyError
impl StructuralPartialEq for MassPropertyError
Auto Trait Implementations§
impl Freeze for MassPropertyError
impl RefUnwindSafe for MassPropertyError
impl Send for MassPropertyError
impl Sync for MassPropertyError
impl Unpin for MassPropertyError
impl UnwindSafe for MassPropertyError
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