pub enum PredictionStrategy {
MostFrequent,
HistoryBased,
Static,
Adaptive,
AlwaysTrue,
Never,
}Expand description
Prediction strategy for speculative execution.
Variants§
MostFrequent
Always predict most frequent branch
HistoryBased
Use recent history to predict
Static
Use static analysis and heuristics
Adaptive
Adaptive strategy that learns over time
AlwaysTrue
Always speculate on true branch
Never
Never speculate (conservative)
Trait Implementations§
Source§impl Clone for PredictionStrategy
impl Clone for PredictionStrategy
Source§fn clone(&self) -> PredictionStrategy
fn clone(&self) -> PredictionStrategy
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 PredictionStrategy
impl Debug for PredictionStrategy
Source§impl<'de> Deserialize<'de> for PredictionStrategy
impl<'de> Deserialize<'de> for PredictionStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictionStrategy
impl PartialEq for PredictionStrategy
Source§impl Serialize for PredictionStrategy
impl Serialize for PredictionStrategy
impl Copy for PredictionStrategy
impl Eq for PredictionStrategy
impl StructuralPartialEq for PredictionStrategy
Auto Trait Implementations§
impl Freeze for PredictionStrategy
impl RefUnwindSafe for PredictionStrategy
impl Send for PredictionStrategy
impl Sync for PredictionStrategy
impl Unpin for PredictionStrategy
impl UnwindSafe for PredictionStrategy
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