#[non_exhaustive]pub enum StepResult {
Completed,
InvalidInput,
InvalidBodyState,
}Expand description
Outcome of a PhysicsScene::step call. PhysicsScene::step 调用的结果。
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.
Completed
The step advanced normally. 步进正常推进。
InvalidInput
The timestep or iteration count was invalid; nothing changed. 步长或迭代次数无效;未发生任何改变。
InvalidBodyState
A body state became non-finite; the scene was restored to its pre-step snapshot. 刚体状态变为非有限;场景已恢复到步进前快照。
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
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 StepResult
Source§impl Debug for StepResult
impl Debug for StepResult
impl Eq for StepResult
Source§impl PartialEq for StepResult
impl PartialEq for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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