pub struct ActionFieldSolver<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, T> ActionFieldSolver<'a, T>
impl<'a, T> ActionFieldSolver<'a, T>
pub fn with_passable<F>(self, passable: F) -> Self
pub fn with_cost<F>(self, cost: F) -> Self
Source§impl<'a, T> ActionFieldSolver<'a, T>
impl<'a, T> ActionFieldSolver<'a, T>
Sourcepub fn neighbors(&self, point: &CubicPoint) -> Vec<(CubicPoint, f64)>
pub fn neighbors(&self, point: &CubicPoint) -> Vec<(CubicPoint, f64)>
Get all passable neighbors from a point
pub fn solve(self) -> impl Iterator<Item = (f64, CubicPoint)>
Trait Implementations§
Source§impl<'a, T> IntoIterator for ActionFieldSolver<'a, T>
impl<'a, T> IntoIterator for ActionFieldSolver<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ActionFieldSolver<'a, T>
impl<'a, T> !RefUnwindSafe for ActionFieldSolver<'a, T>
impl<'a, T> !Send for ActionFieldSolver<'a, T>
impl<'a, T> !Sync for ActionFieldSolver<'a, T>
impl<'a, T> Unpin for ActionFieldSolver<'a, T>
impl<'a, T> !UnwindSafe for ActionFieldSolver<'a, T>
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
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>
Converts
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>
Converts
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