pub struct PathOptions {
pub neighborhood: Neighborhood,
pub min_cost: f32,
pub budget: Option<u32>,
}Expand description
A* search settings.
Fields§
§neighborhood: NeighborhoodAllowed moves and diagonal corner rule.
min_cost: f32Lowest cost any cell can have; it scales the distance heuristic so
paths stay optimal. Must be finite and positive. Default: 1.0.
budget: Option<u32>Maximum cells expanded per call before returning
PathStatus::Pending; None searches to completion. Must not be zero.
Trait Implementations§
Source§impl Clone for PathOptions
impl Clone for PathOptions
impl Copy for PathOptions
Source§impl Debug for PathOptions
impl Debug for PathOptions
Source§impl Default for PathOptions
impl Default for PathOptions
Source§impl PartialEq for PathOptions
impl PartialEq for PathOptions
impl StructuralPartialEq for PathOptions
Auto Trait Implementations§
impl Freeze for PathOptions
impl RefUnwindSafe for PathOptions
impl Send for PathOptions
impl Sync for PathOptions
impl Unpin for PathOptions
impl UnsafeUnpin for PathOptions
impl UnwindSafe for PathOptions
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