Enum battleship_bot::Boat
source · pub enum Boat {
Empty,
Destroyer,
Submarine,
Cruiser,
Battleship,
Carrier,
}
Expand description
Stores the type of Boat that is on a cell
Can either be Empty
or one of the 5 boats in standard Battleship.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq for Boat
impl PartialEq for Boat
impl Copy for Boat
impl StructuralPartialEq for Boat
Auto Trait Implementations§
impl RefUnwindSafe for Boat
impl Send for Boat
impl Sync for Boat
impl Unpin for Boat
impl UnwindSafe for Boat
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