Skip to main content

EvalOpts

Struct EvalOpts 

Source
#[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>

Source

pub const fn new() -> EvalOpts<'static>

Score-only work, without a cancellation source or pixel ceiling.

Source

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.

Source

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.

Source

pub const fn map_request(&self) -> MapRequest<'a>

Requested diagnostic selection.

Source

pub const fn diagnostics(&self) -> bool

Whether diagnostics were explicitly requested.

Source

pub fn with_pulse<'b>(self, pulse: &'b dyn Pulse) -> EvalOpts<'b>
where 'a: 'b,

Replace operation-local observation; never complete its parent.

Source

pub const fn with_max_pixels(self, limit: u64) -> Self

Limit active pixels per input.

Source

pub const fn pulse(&self) -> &'a dyn Pulse

Operation-local progress and cancellation source.

Source

pub const fn max_pixels(&self) -> Option<u64>

Active-pixel limit, when configured.

Source

pub fn stop(&self) -> &'a dyn Stop

Borrow cancellation for native kernels accepting only Stop.

Source

pub fn checkpoint(&self) -> MetricResult<()>

Check cancellation between native phases.

Trait Implementations§

Source§

impl<'a> Clone for EvalOpts<'a>

Source§

fn clone(&self) -> EvalOpts<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for EvalOpts<'a>

Source§

impl Debug for EvalOpts<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EvalOpts<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.