pub enum JointError {
UnknownBody(Entity),
SameBody,
Invalid(&'static str),
}Expand description
Why crate::PhysicsSystem::add_joint refused a joint.
Variants§
UnknownBody(Entity)
An entity that is not registered with the system.
SameBody
Both ends are one body.
Invalid(&'static str)
A setting out of range, and which.
Trait Implementations§
Source§impl Clone for JointError
impl Clone for JointError
impl Copy for JointError
Source§impl Debug for JointError
impl Debug for JointError
Source§impl Display for JointError
impl Display for JointError
impl Eq for JointError
Source§impl Error for JointError
impl Error for JointError
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 JointError
impl PartialEq for JointError
impl StructuralPartialEq for JointError
Auto Trait Implementations§
impl Forget for JointError
impl Freeze for JointError
impl Move for JointError
impl RefUnwindSafe for JointError
impl Send for JointError
impl Sync for JointError
impl Unpin for JointError
impl UnsafeUnpin for JointError
impl UnwindSafe for JointError
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