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
Source§impl Default for SuggestConfig
impl Default for SuggestConfig
Source§fn default() -> SuggestConfig
fn default() -> SuggestConfig
Returns the “default value” for a type. Read more
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.