pub struct Coords {
pub x: isize,
pub y: isize,
}Fields§
§x: isize§y: isizeImplementations§
Source§impl Coords
impl Coords
pub fn is_in_bounds(&self) -> bool
pub fn to_algebraic(&self) -> String
pub fn from_algebraic(square: &str) -> Coords
Trait Implementations§
impl Copy for Coords
impl Eq for Coords
impl StructuralPartialEq for Coords
Auto Trait Implementations§
impl Freeze for Coords
impl RefUnwindSafe for Coords
impl Send for Coords
impl Sync for Coords
impl Unpin for Coords
impl UnwindSafe for Coords
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