Skip to main content

Observer

Trait Observer 

Source
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§

Source

fn observe(&self, objects: &PhysObj) -> Result<Self::Output, ObserveError>

Computes one observable from objects.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§