pub struct LoopVersioningConfig {
pub max_versions: usize,
pub min_speedup_ratio: f32,
}Expand description
Configuration for loop versioning.
Fields§
§max_versions: usizeMaximum number of loop versions to create.
min_speedup_ratio: f32Minimum estimated speedup (as a ratio) to justify versioning.
Implementations§
Source§impl LoopVersioningConfig
impl LoopVersioningConfig
Sourcepub fn conservative() -> Self
pub fn conservative() -> Self
Create a conservative configuration.
Trait Implementations§
Source§impl Clone for LoopVersioningConfig
impl Clone for LoopVersioningConfig
Source§fn clone(&self) -> LoopVersioningConfig
fn clone(&self) -> LoopVersioningConfig
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 LoopVersioningConfig
impl Debug for LoopVersioningConfig
Source§impl Default for LoopVersioningConfig
impl Default for LoopVersioningConfig
Source§fn default() -> LoopVersioningConfig
fn default() -> LoopVersioningConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoopVersioningConfig
impl RefUnwindSafe for LoopVersioningConfig
impl Send for LoopVersioningConfig
impl Sync for LoopVersioningConfig
impl Unpin for LoopVersioningConfig
impl UnsafeUnpin for LoopVersioningConfig
impl UnwindSafe for LoopVersioningConfig
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