pub struct SuggestConfig {
pub max_sample_nodes: usize,
pub max_sample_sources: usize,
pub max_examples: usize,
pub budget_ms: u64,
pub global_budget_ms: u64,
}Expand description
Tuning parameters for suggest_rules.
Fields§
§max_sample_nodes: usizeMax nodes per label sampled during profiling.
max_sample_sources: usizeMax source nodes per candidate during preview evaluation.
max_examples: usizeMax example pairs returned per suggestion.
budget_ms: u64Per-candidate preview time budget in milliseconds.
global_budget_ms: u64Global time budget across all candidates in milliseconds.
When elapsed time exceeds this value before a candidate’s preview begins,
generation stops and SuggestReport::truncated is set to true.
Partial results are returned. The lock is held for at most this long
(plus profiling time, which is fast). Set to 0 to truncate immediately
after profiling (useful for tests).
Trait Implementations§
Source§impl Clone for SuggestConfig
impl Clone for SuggestConfig
Source§fn clone(&self) -> SuggestConfig
fn clone(&self) -> SuggestConfig
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 SuggestConfig
impl Debug for SuggestConfig
Auto Trait Implementations§
impl Freeze for SuggestConfig
impl RefUnwindSafe for SuggestConfig
impl Send for SuggestConfig
impl Sync for SuggestConfig
impl Unpin for SuggestConfig
impl UnsafeUnpin for SuggestConfig
impl UnwindSafe for SuggestConfig
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