pub struct PairedSpeculationWindow { /* private fields */ }Expand description
Accumulated paired-race window for one rewrite candidate and shape.
Implementations§
Source§impl PairedSpeculationWindow
impl PairedSpeculationWindow
Sourcepub fn observation(&self) -> SpeculationObservation
pub fn observation(&self) -> SpeculationObservation
Current observation for the N2 speculation policy.
Sourcepub fn record_sample(
&mut self,
store: &mut AutotuneStore,
keys: SpeculativeVariantKeys<'_>,
sample: PairedSpeculationSample,
) -> PairedSpeculationUpdate
pub fn record_sample( &mut self, store: &mut AutotuneStore, keys: SpeculativeVariantKeys<'_>, sample: PairedSpeculationSample, ) -> PairedSpeculationUpdate
Record one paired sample, update the autotune store with the per-sample winner, and return the accumulated adoption verdict.
Trait Implementations§
Source§impl Clone for PairedSpeculationWindow
impl Clone for PairedSpeculationWindow
Source§fn clone(&self) -> PairedSpeculationWindow
fn clone(&self) -> PairedSpeculationWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PairedSpeculationWindow
impl Debug for PairedSpeculationWindow
Source§impl Default for PairedSpeculationWindow
impl Default for PairedSpeculationWindow
Source§fn default() -> PairedSpeculationWindow
fn default() -> PairedSpeculationWindow
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PairedSpeculationWindow
impl RefUnwindSafe for PairedSpeculationWindow
impl Send for PairedSpeculationWindow
impl Sync for PairedSpeculationWindow
impl Unpin for PairedSpeculationWindow
impl UnsafeUnpin for PairedSpeculationWindow
impl UnwindSafe for PairedSpeculationWindow
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