#[non_exhaustive]pub struct PathBuilderConfig {
pub max_depth: usize,
pub dfs_budget: usize,
}Expand description
Tunable parameters for path building.
Use PathBuilderConfig::default (or PathBuilderConfig::new) for the
production defaults. Embedded callers, callers with restricted compute,
and callers handling adversarial pools can tighten these values.
§Stability
Constructed via PathBuilderConfig::new / Default; the struct is
#[non_exhaustive] so additional knobs can be added without breaking
existing callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_depth: usizeMaximum number of intermediates to explore. The depth probe runs at
max_depth + 1 to distinguish “no path exists” from “path exists
but too deep”. Default: DEFAULT_MAX_DEPTH.
dfs_budget: usizePer-round node-visit budget. Default: DEFAULT_DFS_BUDGET.
Implementations§
Trait Implementations§
Source§impl Clone for PathBuilderConfig
impl Clone for PathBuilderConfig
Source§fn clone(&self) -> PathBuilderConfig
fn clone(&self) -> PathBuilderConfig
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 PathBuilderConfig
impl Debug for PathBuilderConfig
Source§impl Default for PathBuilderConfig
impl Default for PathBuilderConfig
Source§impl Hash for PathBuilderConfig
impl Hash for PathBuilderConfig
Source§impl PartialEq for PathBuilderConfig
impl PartialEq for PathBuilderConfig
Source§fn eq(&self, other: &PathBuilderConfig) -> bool
fn eq(&self, other: &PathBuilderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PathBuilderConfig
impl Eq for PathBuilderConfig
impl StructuralPartialEq for PathBuilderConfig
Auto Trait Implementations§
impl Freeze for PathBuilderConfig
impl RefUnwindSafe for PathBuilderConfig
impl Send for PathBuilderConfig
impl Sync for PathBuilderConfig
impl Unpin for PathBuilderConfig
impl UnsafeUnpin for PathBuilderConfig
impl UnwindSafe for PathBuilderConfig
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