pub trait PhysicsDiagnostics: Default + Resource {
// 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§
Sourcefn timer_paths(&self) -> Vec<(&'static DiagnosticPath, Duration)>
fn timer_paths(&self) -> Vec<(&'static DiagnosticPath, Duration)>
Maps diagnostic paths to their respective duration fields.
Sourcefn counter_paths(&self) -> Vec<(&'static DiagnosticPath, u32)>
fn counter_paths(&self) -> Vec<(&'static DiagnosticPath, u32)>
Maps diagnostic paths to their respective counter fields.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.