pub struct PairedEvaluation<T> { /* private fields */ }Expand description
Both original native assessments, sharing cached reference work without cloning native arrays. The common view exposes candidate scores/maps first.
Implementations§
Trait Implementations§
Source§impl<T: Evaluation> Evaluation for PairedEvaluation<T>
impl<T: Evaluation> Evaluation for PairedEvaluation<T>
Source§fn scores(&self) -> impl Iterator<Item = Score<'_>>
fn scores(&self) -> impl Iterator<Item = Score<'_>>
All scalar outputs and their semantics, headline first when applicable.
Source§fn maps(&self) -> impl Iterator<Item = MapView<'_>>
fn maps(&self) -> impl Iterator<Item = MapView<'_>>
Borrow native map planes when diagnostics were requested. The default
publishes none; a metric without diagnostics must refuse a request.
Native fields remain accessible even when no common map view is exposed.
Source§fn 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.
Source§fn 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.Auto Trait Implementations§
impl<T> Freeze for PairedEvaluation<T>where
T: Freeze,
impl<T> RefUnwindSafe for PairedEvaluation<T>where
T: RefUnwindSafe,
impl<T> Send for PairedEvaluation<T>
impl<T> Sync for PairedEvaluation<T>
impl<T> Unpin for PairedEvaluation<T>where
T: Unpin,
impl<T> UnsafeUnpin for PairedEvaluation<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PairedEvaluation<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more