Skip to main content

AStarConfig

Struct AStarConfig 

Source
pub struct AStarConfig<OS, CF, GS> {
    pub open_set: OS,
    pub came_from: CF,
    pub g_score: GS,
}
Expand description

Configuration structure for A* algorithm to avoid too many function parameters

Fields§

§open_set: OS

Map to track nodes in the open set with their f-scores

§came_from: CF

Map to track the path (parent of each node)

§g_score: GS

Map to store actual cost from start to each node

Auto Trait Implementations§

§

impl<OS, CF, GS> Freeze for AStarConfig<OS, CF, GS>
where OS: Freeze, CF: Freeze, GS: Freeze,

§

impl<OS, CF, GS> RefUnwindSafe for AStarConfig<OS, CF, GS>

§

impl<OS, CF, GS> Send for AStarConfig<OS, CF, GS>
where OS: Send, CF: Send, GS: Send,

§

impl<OS, CF, GS> Sync for AStarConfig<OS, CF, GS>
where OS: Sync, CF: Sync, GS: Sync,

§

impl<OS, CF, GS> Unpin for AStarConfig<OS, CF, GS>
where OS: Unpin, CF: Unpin, GS: Unpin,

§

impl<OS, CF, GS> UnsafeUnpin for AStarConfig<OS, CF, GS>
where OS: UnsafeUnpin, CF: UnsafeUnpin, GS: UnsafeUnpin,

§

impl<OS, CF, GS> UnwindSafe for AStarConfig<OS, CF, GS>
where OS: UnwindSafe, CF: UnwindSafe, GS: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.