[−][src]Struct spacebattleship::board::ShotError
Error returned when trying to shoot a cell.
Implementations
impl<C: Debug> ShotError<C>
[src]
pub fn reason(&self) -> CannotShootReason
[src]
Get the reason the shot failed.
pub fn coord(&self) -> &C
[src]
Get the coordinate of the shot cell.
pub fn into_coord(self) -> C
[src]
Extract the coordinate of the shot cell.
Trait Implementations
impl<C: Debug> Debug for ShotError<C>
[src]
impl<C: Debug> Display for ShotError<C>
[src]
impl<C: Debug> Error for ShotError<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for ShotError<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for ShotError<C> where
C: Send,
C: Send,
impl<C> Sync for ShotError<C> where
C: Sync,
C: Sync,
impl<C> Unpin for ShotError<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for ShotError<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,