[−][src]Struct spacebattleship::game::uniform::AddPlayerError
Error returned when trying to add a ship that already existed.
Implementations
impl<P: Debug, D> AddPlayerError<P, D>
[src]
pub fn id(&self) -> &P
[src]
The id of the player that was added.
pub fn dimensions(&self) -> &D
[src]
The dimensions of the board that was attempted to be added.
pub fn into_inner(self) -> (P, D)
[src]
Extract the ID and Dimensions from this error.
Trait Implementations
impl<I: Debug, S> Debug for AddPlayerError<I, S>
[src]
impl<P: Debug, D> Display for AddPlayerError<P, D>
[src]
impl<P: Debug, D> Error for AddPlayerError<P, D>
[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<P: Debug, D> From<AddPlayerError<P, D>> for (P, D)
[src]
fn from(err: AddPlayerError<P, D>) -> Self
[src]
Allows retrieving the inner id and shape from the error with into.
Auto Trait Implementations
impl<P, D> RefUnwindSafe for AddPlayerError<P, D> where
D: RefUnwindSafe,
P: RefUnwindSafe,
D: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, D> Send for AddPlayerError<P, D> where
D: Send,
P: Send,
D: Send,
P: Send,
impl<P, D> Sync for AddPlayerError<P, D> where
D: Sync,
P: Sync,
D: Sync,
P: Sync,
impl<P, D> Unpin for AddPlayerError<P, D> where
D: Unpin,
P: Unpin,
D: Unpin,
P: Unpin,
impl<P, D> UnwindSafe for AddPlayerError<P, D> where
D: UnwindSafe,
P: UnwindSafe,
D: UnwindSafe,
P: 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>,