Skip to main content

PairedEvaluation

Struct PairedEvaluation 

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

Source§

impl<T> PairedEvaluation<T>

Source

pub fn reference(&self) -> &T

Original reference assessment (score-only).

Source

pub fn candidate(&self) -> &T

Original candidate assessment, including requested native diagnostics.

Trait Implementations§

Source§

impl<T: Evaluation> Evaluation for PairedEvaluation<T>

Source§

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<'_>>

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>))

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>))

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>
where T: Send + Sync,

§

impl<T> Sync for PairedEvaluation<T>
where T: Sync + Send,

§

impl<T> Unpin for PairedEvaluation<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for PairedEvaluation<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for PairedEvaluation<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.