pub struct Grid { /* private fields */ }Expand description
A 4- or 8-connected grid with blocked cells; straight moves cost 1, diagonal moves
√2 (and may not cut blocked corners). Vertex y * width + x is cell (x, y).
Implementations§
Trait Implementations§
impl Eq for Grid
Source§impl Graph for Grid
impl Graph for Grid
impl StructuralPartialEq for Grid
Auto Trait Implementations§
impl Forget for Grid
impl Freeze for Grid
impl Move for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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