Enum battleship_bot::Shot
source · pub enum Shot {
Hit(Boat),
Miss,
}
Expand description
Stores the data for a shot
Can either be a Miss
or a Hit
.
If it’s a Hit
it stores the Boat
it hit
Variants§
Trait Implementations§
source§impl PartialEq for Shot
impl PartialEq for Shot
impl Copy for Shot
impl StructuralPartialEq for Shot
Auto Trait Implementations§
impl RefUnwindSafe for Shot
impl Send for Shot
impl Sync for Shot
impl Unpin for Shot
impl UnwindSafe for Shot
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