pub trait Observer: Send + Sync {
type Output;
// Required method
fn observe(&self, objects: &PhysObj) -> Result<Self::Output, ObserveError>;
}Expand description
Computes one observable from the current particle state.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".