[−][src]Enum spacebattleship::game::simple::CannotPlaceReason
Reason why a ship could not be placed at a given position.
Variants
The ship did not fit in the given direction.
The ship was already placed.
The space selected overlaps a ship that was already placed.
Trait Implementations
impl Clone for CannotPlaceReason
[src]
fn clone(&self) -> CannotPlaceReason
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CannotPlaceReason
[src]
impl Debug for CannotPlaceReason
[src]
impl Display for CannotPlaceReason
[src]
impl Eq for CannotPlaceReason
[src]
impl Error for CannotPlaceReason
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<CannotPlaceReason> for CannotPlaceReason
[src]
fn eq(&self, other: &CannotPlaceReason) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for CannotPlaceReason
[src]
impl StructuralPartialEq for CannotPlaceReason
[src]
Auto Trait Implementations
impl RefUnwindSafe for CannotPlaceReason
impl Send for CannotPlaceReason
impl Sync for CannotPlaceReason
impl Unpin for CannotPlaceReason
impl UnwindSafe for CannotPlaceReason
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,