struct FloodFill {
distance: f32,
unvisited: Vec<(u16, u16, f32)>,
visited: Grid<bool>,
candidates: Vec<(u16, u16, f32)>,
}
Fields
distance: f32
unvisited: Vec<(u16, u16, f32)>
visited: Grid<bool>
candidates: Vec<(u16, u16, f32)>
Implementations
sourceimpl FloodFill
impl FloodFill
fn new(distance: f32) -> Self
fn choose_reachable<W>(
&mut self,
map: &Map,
habitat_quality: &mut QueryMap<'_, (&BreedingCapacity, Matches<&Impassable>)>,
perm: &mut QueryMap<'_, &Permeability>,
rng: &mut Rng,
x0: u16,
y0: u16,
weights: W
) -> Option<(u16, u16)> where
W: Fn(u16, u16, f32, u16) -> f32,
Auto Trait Implementations
impl RefUnwindSafe for FloodFill
impl Send for FloodFill
impl Sync for FloodFill
impl Unpin for FloodFill
impl UnwindSafe for FloodFill
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more