pub enum GridError {
OutOfBounds(Coord),
AlreadyVisited(Coord),
}Variants§
OutOfBounds(Coord)
The coordinate has no cell associated with it, as it’s out of the grid bounds.
AlreadyVisited(Coord)
The coordinate has previously been mutably borrowed from the iterator, and doing so again would break safety guarantees.
Trait Implementations§
impl Eq for GridError
impl StructuralPartialEq for GridError
Auto Trait Implementations§
impl Freeze for GridError
impl RefUnwindSafe for GridError
impl Send for GridError
impl Sync for GridError
impl Unpin for GridError
impl UnsafeUnpin for GridError
impl UnwindSafe for GridError
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