pub struct Obstacles { /* private fields */ }Expand description
Binary map of obstacles.
Implementations§
Trait Implementations§
Source§impl From<&Obstacles> for DistanceField
impl From<&Obstacles> for DistanceField
Source§impl Grid for Obstacles
impl Grid for Obstacles
type Item = bool
fn get_at(&self, x: usize, y: usize) -> &Self::Item
fn set_at(&mut self, x: usize, y: usize, value: Self::Item)
Source§fn get_rows_mut(&mut self, y: usize) -> (&mut [Self::Item], &mut [Self::Item])
fn get_rows_mut(&mut self, y: usize) -> (&mut [Self::Item], &mut [Self::Item])
Returns the specified row and the row below it.
fn iter(&self) -> Iter<'_, Self::Item>
fn iter_mut(&mut self) -> IterMut<'_, Self::Item>
Auto Trait Implementations§
impl Freeze for Obstacles
impl RefUnwindSafe for Obstacles
impl Send for Obstacles
impl Sync for Obstacles
impl Unpin for Obstacles
impl UnwindSafe for Obstacles
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