pub enum InvalidMoveType<V> {
InvalidCar,
InvalidDirection,
InvalidFinalPosition,
Intersects(Position<V>, NonZeroUsize),
}Expand description
The type of invalid move that was observed in an InvalidMoveError.
Variants§
InvalidCar
The car that was designated to be moved didn’t exist.
InvalidDirection
The direction that was used isn’t valid for the provided car.
InvalidFinalPosition
The final position of the car is out of bounds.
Intersects(Position<V>, NonZeroUsize)
After moving the car, the car would intersect another with the provided index at the provided position.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for InvalidMoveType<V>where
V: Freeze,
impl<V> RefUnwindSafe for InvalidMoveType<V>where
V: RefUnwindSafe,
impl<V> Send for InvalidMoveType<V>where
V: Send,
impl<V> Sync for InvalidMoveType<V>where
V: Sync,
impl<V> Unpin for InvalidMoveType<V>where
V: Unpin,
impl<V> UnsafeUnpin for InvalidMoveType<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for InvalidMoveType<V>where
V: UnwindSafe,
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