#[non_exhaustive]pub struct EvalOpts<'a> { /* private fields */ }Expand description
Operation-local controls. Diagnostic arrays are off by default.
Implementations§
Source§impl<'a> EvalOpts<'a>
impl<'a> EvalOpts<'a>
Sourcepub const fn new() -> EvalOpts<'static>
pub const fn new() -> EvalOpts<'static>
Score-only work, without a cancellation source or pixel ceiling.
Sourcepub const fn with_native_map(self) -> Self
pub const fn with_native_map(self) -> Self
Opt into native diagnostic arrays. The caller bounds the witness set and storage budget. Unsupported diagnostics must be refused.
Sourcepub fn with_map<'b>(self, key: &'b str) -> EvalOpts<'b>where
'a: 'b,
pub fn with_map<'b>(self, key: &'b str) -> EvalOpts<'b>where
'a: 'b,
Require a common native map by its stable key. Implementations may compute shared components, but must not substitute another map.
Sourcepub const fn map_request(&self) -> MapRequest<'a>
pub const fn map_request(&self) -> MapRequest<'a>
Requested diagnostic selection.
Sourcepub const fn diagnostics(&self) -> bool
pub const fn diagnostics(&self) -> bool
Whether diagnostics were explicitly requested.
Sourcepub fn with_pulse<'b>(self, pulse: &'b dyn Pulse) -> EvalOpts<'b>where
'a: 'b,
pub fn with_pulse<'b>(self, pulse: &'b dyn Pulse) -> EvalOpts<'b>where
'a: 'b,
Replace operation-local observation; never complete its parent.
Sourcepub const fn with_max_pixels(self, limit: u64) -> Self
pub const fn with_max_pixels(self, limit: u64) -> Self
Limit active pixels per input.
Sourcepub const fn max_pixels(&self) -> Option<u64>
pub const fn max_pixels(&self) -> Option<u64>
Active-pixel limit, when configured.
Sourcepub fn checkpoint(&self) -> MetricResult<()>
pub fn checkpoint(&self) -> MetricResult<()>
Check cancellation between native phases.
Trait Implementations§
impl<'a> Copy for EvalOpts<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EvalOpts<'a>
impl<'a> !UnwindSafe for EvalOpts<'a>
impl<'a> Freeze for EvalOpts<'a>
impl<'a> Send for EvalOpts<'a>
impl<'a> Sync for EvalOpts<'a>
impl<'a> Unpin for EvalOpts<'a>
impl<'a> UnsafeUnpin for EvalOpts<'a>
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