#[non_exhaustive]pub enum ImpetusError {
BodyNotFound(String),
ColliderNotFound(String),
JointNotFound(String),
InvalidConfig(String),
Serialize(String),
Deserialize(String),
Physics(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BodyNotFound(String)
ColliderNotFound(String)
JointNotFound(String)
InvalidConfig(String)
Serialize(String)
Deserialize(String)
Physics(String)
Trait Implementations§
Source§impl Debug for ImpetusError
impl Debug for ImpetusError
Source§impl Display for ImpetusError
impl Display for ImpetusError
Source§impl Error for ImpetusError
impl Error for ImpetusError
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 PartialEq for ImpetusError
impl PartialEq for ImpetusError
impl StructuralPartialEq for ImpetusError
Auto Trait Implementations§
impl Freeze for ImpetusError
impl RefUnwindSafe for ImpetusError
impl Send for ImpetusError
impl Sync for ImpetusError
impl Unpin for ImpetusError
impl UnsafeUnpin for ImpetusError
impl UnwindSafe for ImpetusError
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