Struct battleship_bot::Pos
source · pub struct Pos {
pub x: usize,
pub y: usize,
}
Expand description
Saves an x and y for a position on a board
Fields§
§x: usize
§y: usize
Trait Implementations§
source§impl Distribution<Pos> for Standard
impl Distribution<Pos> for Standard
impl Copy for Pos
impl StructuralPartialEq for Pos
Auto Trait Implementations§
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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