pub trait Variable:
    DynClone
    + Send
    + Sync
    + Serialize
    + Deserialize {
    // Required method
    fn value(&self, event: &Event) -> Float;
    // Provided methods
    fn value_on_local(&self, dataset: &Arc<Dataset>) -> Vec<Float> { ... }
    fn value_on(&self, dataset: &Arc<Dataset>) -> Vec<Float> { ... }
}Expand description
Standard methods for extracting some value out of an Event.
Required Methods§
Provided Methods§
Sourcefn value_on_local(&self, dataset: &Arc<Dataset>) -> Vec<Float>
 
fn value_on_local(&self, dataset: &Arc<Dataset>) -> Vec<Float>
This method distributes the Variable::value method over each Event in a
Dataset (non-MPI version).
§Notes
This method is not intended to be called in analyses but rather in writing methods
that have mpi-feature-gated versions. Most users should just call Variable::value_on instead.