pub enum ColliderShapeError {
InvalidHandle,
InvalidCollider,
InvalidMass,
RevisionExhausted,
}Expand description
Transactional shape replacement failure. See the dimensional
PhysicsWorld::replace_collider_shape method for a runnable editing recipe.
Existing PhysicsError variants remain unchanged.
Variants§
InvalidHandle
The collider or its parent is stale or absent in this world.
InvalidCollider
Candidate geometry or retained collider settings are invalid for this world.
InvalidMass
The resulting dynamic compound has zero or unrepresentable mass/inertia.
RevisionExhausted
The collider or body contact revision cannot advance without identity reuse.
Trait Implementations§
Source§impl Clone for ColliderShapeError
impl Clone for ColliderShapeError
Source§fn clone(&self) -> ColliderShapeError
fn clone(&self) -> ColliderShapeError
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 ColliderShapeError
impl Debug for ColliderShapeError
Source§impl Display for ColliderShapeError
impl Display for ColliderShapeError
Source§impl Error for ColliderShapeError
impl Error for ColliderShapeError
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 ColliderShapeError
impl PartialEq for ColliderShapeError
impl Copy for ColliderShapeError
impl Eq for ColliderShapeError
impl StructuralPartialEq for ColliderShapeError
Auto Trait Implementations§
impl Freeze for ColliderShapeError
impl RefUnwindSafe for ColliderShapeError
impl Send for ColliderShapeError
impl Sync for ColliderShapeError
impl Unpin for ColliderShapeError
impl UnwindSafe for ColliderShapeError
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