pub struct Spot {
pub coordinate: Coordinate,
/* private fields */
}
Fields§
§coordinate: Coordinate
Implementations§
Source§impl Spot
impl Spot
pub fn new(coordinate: Coordinate) -> Spot
pub fn as_first_cell(&mut self) -> &GridCell<First>
pub fn as_second_cell(&mut self) -> &GridCell<Second>
pub fn as_third_cell(&mut self) -> &GridCell<Third>
pub fn as_fourth_cell(&mut self) -> &GridCell<Fourth>
pub fn to_first_cell(self) -> GridCell<First>
pub fn to_second_cell(self) -> GridCell<Second>
pub fn to_third_cell(self) -> GridCell<Third>
pub fn to_fourth_cell(self) -> GridCell<Fourth>
Auto Trait Implementations§
impl Freeze for Spot
impl RefUnwindSafe for Spot
impl Send for Spot
impl Sync for Spot
impl Unpin for Spot
impl UnwindSafe for Spot
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