[][src]Struct grid_search_cardinal_distance_map::SearchContext

pub struct SearchContext { /* fields omitted */ }

Methods

impl SearchContext[src]

pub fn new(size: Size) -> Self[src]

pub fn search_path<C: CanEnter>(
    &mut self,
    can_enter: &C,
    start: Coord,
    max_distance: Distance,
    distance_map: &DistanceMap,
    path: &mut Path
)
[src]

pub fn search_first<C: CanEnter>(
    &mut self,
    can_enter: &C,
    start: Coord,
    max_distance: Distance,
    distance_map: &DistanceMap
) -> Option<CardinalDirection>
[src]

Trait Implementations

impl Clone for SearchContext[src]

impl Debug for SearchContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]