pub enum DeckMechanicalError {
InvalidConfig(PhysicalDeckConfigError),
InvalidDuration,
DurationAboveMaximum {
maximum: f64,
},
MidpointStepRequiresOneIntegrationStep,
InvalidControl {
field: &'static str,
},
InvalidSnapshotField {
field: &'static str,
},
InvalidSnapshot,
UnsupportedSnapshotVersion {
version: u32,
},
ContactSolveFailure,
StepCounterOverflow,
NumericalFailure,
}Variants§
InvalidConfig(PhysicalDeckConfigError)
InvalidDuration
DurationAboveMaximum
MidpointStepRequiresOneIntegrationStep
InvalidControl
InvalidSnapshotField
InvalidSnapshot
UnsupportedSnapshotVersion
ContactSolveFailure
StepCounterOverflow
NumericalFailure
Trait Implementations§
Source§impl Clone for DeckMechanicalError
impl Clone for DeckMechanicalError
Source§fn clone(&self) -> DeckMechanicalError
fn clone(&self) -> DeckMechanicalError
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 DeckMechanicalError
Source§impl Debug for DeckMechanicalError
impl Debug for DeckMechanicalError
Source§impl Display for DeckMechanicalError
impl Display for DeckMechanicalError
Source§impl Error for DeckMechanicalError
impl Error for DeckMechanicalError
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<PhysicalDeckConfigError> for DeckMechanicalError
impl From<PhysicalDeckConfigError> for DeckMechanicalError
Source§fn from(source: PhysicalDeckConfigError) -> Self
fn from(source: PhysicalDeckConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeckMechanicalError
impl PartialEq for DeckMechanicalError
impl StructuralPartialEq for DeckMechanicalError
Auto Trait Implementations§
impl Freeze for DeckMechanicalError
impl RefUnwindSafe for DeckMechanicalError
impl Send for DeckMechanicalError
impl Sync for DeckMechanicalError
impl Unpin for DeckMechanicalError
impl UnsafeUnpin for DeckMechanicalError
impl UnwindSafe for DeckMechanicalError
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