pub struct OptimizationDecline {
pub backend: OptimizationBackend,
pub opt: Opt,
pub reason: String,
}Expand description
A supported optimization that a backend deliberately chose not to apply.
This is distinct from OptimizationFallback: a decline stays on the
requested backend and records a cost-model, proof, or capability decision;
a fallback changes the backend that executes the program. Keeping the two
channels separate lets benchmark ratchets reject silent backend changes
without also rejecting an explicitly justified profitability decision.
Fields§
§backend: OptimizationBackend§opt: Opt§reason: StringTrait Implementations§
Source§impl Clone for OptimizationDecline
impl Clone for OptimizationDecline
Source§fn clone(&self) -> OptimizationDecline
fn clone(&self) -> OptimizationDecline
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizationDecline
impl Debug for OptimizationDecline
Source§impl PartialEq for OptimizationDecline
impl PartialEq for OptimizationDecline
impl Eq for OptimizationDecline
impl StructuralPartialEq for OptimizationDecline
Auto Trait Implementations§
impl Freeze for OptimizationDecline
impl RefUnwindSafe for OptimizationDecline
impl Send for OptimizationDecline
impl Sync for OptimizationDecline
impl Unpin for OptimizationDecline
impl UnsafeUnpin for OptimizationDecline
impl UnwindSafe for OptimizationDecline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.