pub trait Evaluation {
// Required method
fn scores(&self) -> impl Iterator<Item = Score<'_>>;
// Provided methods
fn visit_scores<'a>(&'a self, visitor: &mut dyn FnMut(Score<'a>)) { ... }
fn visit_maps<'a>(&'a self, visitor: &mut dyn FnMut(MapView<'a>)) { ... }
fn maps(&self) -> impl Iterator<Item = MapView<'_>> { ... }
}Expand description
Common access to a concrete assessment. Additional native fields remain accessible on its concrete type. Iteration need not allocate. A successful assessment has at least one uniquely named score, in stable output order.
Required Methods§
Provided Methods§
Sourcefn visit_scores<'a>(&'a self, visitor: &mut dyn FnMut(Score<'a>))
fn visit_scores<'a>(&'a self, visitor: &mut dyn FnMut(Score<'a>))
Visit scores without allocating an erased iterator. Implementations overriding this method must expose exactly the same order and values.
Sourcefn visit_maps<'a>(&'a self, visitor: &mut dyn FnMut(MapView<'a>))
fn visit_maps<'a>(&'a self, visitor: &mut dyn FnMut(MapView<'a>))
Visit maps without allocating an erased iterator, with the same views
and order as Self::maps.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".