Struct lib2048::TilePos [−][src]
pub struct TilePos(_, _);
Methods
impl TilePos
[src]
impl TilePos
pub fn to_usize_index(&self, size: TilePos) -> usize
[src]
pub fn to_usize_index(&self, size: TilePos) -> usize
pub fn size_as_usize(&self) -> usize
[src]
pub fn size_as_usize(&self) -> usize
Trait Implementations
impl Eq for TilePos
[src]
impl Eq for TilePos
impl PartialEq for TilePos
[src]
impl PartialEq for TilePos
fn eq(&self, other: &TilePos) -> bool
[src]
fn eq(&self, other: &TilePos) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TilePos) -> bool
[src]
fn ne(&self, other: &TilePos) -> bool
This method tests for !=
.
impl Debug for TilePos
[src]
impl Debug for TilePos
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for TilePos
[src]
impl Copy for TilePos
impl Clone for TilePos
[src]
impl Clone for TilePos
fn clone(&self) -> TilePos
[src]
fn clone(&self) -> TilePos
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<(usize, usize)> for TilePos
[src]
impl From<(usize, usize)> for TilePos