pub struct ErasedEvaluation { /* private fields */ }Expand description
An owned native assessment with common borrowed score access. The native result is moved into a box; scalar descriptors and diagnostic arrays are not copied. Score iteration uses a short-lived erased iterator allocation.
Implementations§
Source§impl ErasedEvaluation
impl ErasedEvaluation
Sourcepub fn new<T: Evaluation + 'static>(native: T) -> Self
pub fn new<T: Evaluation + 'static>(native: T) -> Self
Erase an assessment. Repeated erasure preserves the original native downcast target rather than retaining nested erased-result envelopes.
Trait Implementations§
Source§impl Evaluation for ErasedEvaluation
impl Evaluation for ErasedEvaluation
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 !RefUnwindSafe for ErasedEvaluation
impl !Send for ErasedEvaluation
impl !Sync for ErasedEvaluation
impl !UnwindSafe for ErasedEvaluation
impl Freeze for ErasedEvaluation
impl Unpin for ErasedEvaluation
impl UnsafeUnpin for ErasedEvaluation
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