pub struct RegionChunkPosition {
pub x: u8,
pub z: u8,
}Fields§
§x: u8§z: u8Implementations§
Source§impl RegionChunkPosition
impl RegionChunkPosition
pub fn new(x: u8, z: u8) -> RegionChunkPosition
pub fn from_chunk_position(chunk_x: i32, chunk_z: i32) -> RegionChunkPosition
Trait Implementations§
Source§impl Clone for RegionChunkPosition
impl Clone for RegionChunkPosition
Source§fn clone(&self) -> RegionChunkPosition
fn clone(&self) -> RegionChunkPosition
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 moreSource§impl Debug for RegionChunkPosition
impl Debug for RegionChunkPosition
Source§impl Ord for RegionChunkPosition
impl Ord for RegionChunkPosition
Source§fn cmp(&self, other: &RegionChunkPosition) -> Ordering
fn cmp(&self, other: &RegionChunkPosition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegionChunkPosition
impl PartialEq for RegionChunkPosition
Source§fn eq(&self, other: &RegionChunkPosition) -> bool
fn eq(&self, other: &RegionChunkPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RegionChunkPosition
impl PartialOrd for RegionChunkPosition
impl Copy for RegionChunkPosition
impl Eq for RegionChunkPosition
impl StructuralPartialEq for RegionChunkPosition
Auto Trait Implementations§
impl Freeze for RegionChunkPosition
impl RefUnwindSafe for RegionChunkPosition
impl Send for RegionChunkPosition
impl Sync for RegionChunkPosition
impl Unpin for RegionChunkPosition
impl UnsafeUnpin for RegionChunkPosition
impl UnwindSafe for RegionChunkPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more