Struct versatiles::shared::TileCoord3
source · pub struct TileCoord3 { /* private fields */ }
Implementations§
source§impl TileCoord3
impl TileCoord3
pub fn new(x: u32, y: u32, z: u8) -> TileCoord3
pub fn get_x(&self) -> u32
pub fn get_y(&self) -> u32
pub fn get_z(&self) -> u8
pub fn flip_y(&mut self)
pub fn swap_xy(&mut self)
pub fn as_geo(&self) -> [f32; 2]
pub fn as_coord2(&self) -> TileCoord2
pub fn get_sort_index(&self) -> u64
Trait Implementations§
source§impl Clone for TileCoord3
impl Clone for TileCoord3
source§fn clone(&self) -> TileCoord3
fn clone(&self) -> TileCoord3
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TileCoord3
impl Debug for TileCoord3
source§impl Hash for TileCoord3
impl Hash for TileCoord3
source§impl PartialEq<TileCoord3> for TileCoord3
impl PartialEq<TileCoord3> for TileCoord3
source§fn eq(&self, other: &TileCoord3) -> bool
fn eq(&self, other: &TileCoord3) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TileCoord3> for TileCoord3
impl PartialOrd<TileCoord3> for TileCoord3
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TileCoord3
impl Eq for TileCoord3
impl StructuralEq for TileCoord3
impl StructuralPartialEq for TileCoord3
Auto Trait Implementations§
impl RefUnwindSafe for TileCoord3
impl Send for TileCoord3
impl Sync for TileCoord3
impl Unpin for TileCoord3
impl UnwindSafe for TileCoord3
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.