pub struct Config {
pub warmup_runs: u32,
pub cache_enabled: bool,
pub debug: bool,
pub smart_detection: bool,
}Expand description
Selection configuration
Fields§
§warmup_runs: u32Number of warmup runs before selecting winner
cache_enabled: boolEnable caching of winning algorithms
debug: boolEnable debug logging
smart_detection: boolEnable smart pattern detection
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_warmup(self, runs: u32) -> Self
pub fn with_cache(self, enabled: bool) -> Self
pub fn with_debug(self, enabled: bool) -> Self
pub fn with_smart_detection(self, enabled: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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