Skip to main content

PhysicsDiagnostics

Trait PhysicsDiagnostics 

Source
pub trait PhysicsDiagnostics: Default + Resource<Mutability = Mutable> {
    // Provided methods
    fn timer_paths(&self) -> Vec<(&'static DiagnosticPath, Duration)> { ... }
    fn counter_paths(&self) -> Vec<(&'static DiagnosticPath, u32)> { ... }
    fn reset(physics_diagnostics: ResMut<'_, Self>) { ... }
}
Expand description

A trait for resources storing timers and counters for physics diagnostics.

Provided Methods§

Source

fn timer_paths(&self) -> Vec<(&'static DiagnosticPath, Duration)>

Maps diagnostic paths to their respective duration fields.

Source

fn counter_paths(&self) -> Vec<(&'static DiagnosticPath, u32)>

Maps diagnostic paths to their respective counter fields.

Source

fn reset(physics_diagnostics: ResMut<'_, Self>)

A system that resets the diagnostics to their default values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§