pub struct PathFinderConfig { /* private fields */ }Expand description
The PathFinderConfig object provides a standard interface for configuring various
implemented transformers.
Implementations§
Source§impl PathFinderConfig
impl PathFinderConfig
Sourcepub const DEFAULT_MAX_DEPTH: usize = 5usize
pub const DEFAULT_MAX_DEPTH: usize = 5usize
the default maximum search depth for pathfinding
Sourcepub const DEFAULT_MAX_PATHS: usize = 5usize
pub const DEFAULT_MAX_PATHS: usize = 5usize
the default maximum number of paths to find
Sourcepub fn new(depth: usize, paths: usize) -> PathFinderConfig
pub fn new(depth: usize, paths: usize) -> PathFinderConfig
returns a new instance of the PathFinderConfig with the given values
Sourcepub fn from_depth(depth: usize) -> PathFinderConfig
pub fn from_depth(depth: usize) -> PathFinderConfig
returns a new instance of the PathFinderConfig with the given depth and default
paths
Sourcepub fn from_paths(paths: usize) -> PathFinderConfig
pub fn from_paths(paths: usize) -> PathFinderConfig
returns a new instance of the PathFinderConfig with the given paths and default
depth
Sourcepub const fn max_depth_mut(&mut self) -> &mut usize
pub const fn max_depth_mut(&mut self) -> &mut usize
returns a mutable reference to the maximum depth for pathfinding
Sourcepub const fn max_paths_mut(&mut self) -> &mut usize
pub const fn max_paths_mut(&mut self) -> &mut usize
returns a mutable reference to the maximum number of paths to find
Sourcepub fn set_max_depth(&mut self, depth: usize) -> &mut PathFinderConfig
pub fn set_max_depth(&mut self, depth: usize) -> &mut PathFinderConfig
set the maximum depth for pathfinding
Sourcepub fn set_max_paths(&mut self, paths: usize) -> &mut PathFinderConfig
pub fn set_max_paths(&mut self, paths: usize) -> &mut PathFinderConfig
set the maximum number of paths to find
Sourcepub fn with_max_depth(self, depth: usize) -> PathFinderConfig
pub fn with_max_depth(self, depth: usize) -> PathFinderConfig
consumes the current instance to create another with the given maximum depth
Sourcepub fn with_max_paths(self, paths: usize) -> PathFinderConfig
pub fn with_max_paths(self, paths: usize) -> PathFinderConfig
consumes the current instance to create another with the given maximum number of paths
Trait Implementations§
Source§impl Clone for PathFinderConfig
impl Clone for PathFinderConfig
Source§fn clone(&self) -> PathFinderConfig
fn clone(&self) -> PathFinderConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PathFinderConfig
impl Debug for PathFinderConfig
Source§impl Default for PathFinderConfig
impl Default for PathFinderConfig
Source§fn default() -> PathFinderConfig
fn default() -> PathFinderConfig
Source§impl<'de> Deserialize<'de> for PathFinderConfigwhere
PathFinderConfig: Default,
impl<'de> Deserialize<'de> for PathFinderConfigwhere
PathFinderConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathFinderConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathFinderConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for PathFinderConfig
impl Display for PathFinderConfig
Source§impl Hash for PathFinderConfig
impl Hash for PathFinderConfig
Source§impl Ord for PathFinderConfig
impl Ord for PathFinderConfig
Source§fn cmp(&self, other: &PathFinderConfig) -> Ordering
fn cmp(&self, other: &PathFinderConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PathFinderConfig
impl PartialEq for PathFinderConfig
Source§impl PartialOrd for PathFinderConfig
impl PartialOrd for PathFinderConfig
Source§impl Serialize for PathFinderConfig
impl Serialize for PathFinderConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for PathFinderConfig
impl Eq for PathFinderConfig
impl StructuralPartialEq for PathFinderConfig
Auto Trait Implementations§
impl Freeze for PathFinderConfig
impl RefUnwindSafe for PathFinderConfig
impl Send for PathFinderConfig
impl Sync for PathFinderConfig
impl Unpin for PathFinderConfig
impl UnwindSafe for PathFinderConfig
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more