pub struct ChunkPosition {
pub x: i32,
pub y: i32,
}Expand description
Coordinates of a chunk in a LuaSurface where each integer x/y represents a different chunk. This uses the same format as MapPosition, meaning it can be specified either with or without explicit keys. A MapPosition can be translated to a ChunkPosition by dividing the x/y values by 32.
Fields§
§x: i32§y: i32Trait Implementations§
Source§impl Clone for ChunkPosition
impl Clone for ChunkPosition
Source§fn clone(&self) -> ChunkPosition
fn clone(&self) -> ChunkPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChunkPosition
Source§impl Debug for ChunkPosition
impl Debug for ChunkPosition
Source§impl Default for ChunkPosition
impl Default for ChunkPosition
Source§fn default() -> ChunkPosition
fn default() -> ChunkPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChunkPosition
impl PartialEq for ChunkPosition
impl StructuralPartialEq for ChunkPosition
Auto Trait Implementations§
impl Freeze for ChunkPosition
impl RefUnwindSafe for ChunkPosition
impl Send for ChunkPosition
impl Sync for ChunkPosition
impl Unpin for ChunkPosition
impl UnsafeUnpin for ChunkPosition
impl UnwindSafe for ChunkPosition
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