pub struct RegionPosition {
pub x: i32,
pub z: i32,
}Fields§
§x: i32§z: i32Implementations§
Source§impl RegionPosition
impl RegionPosition
pub fn new(x: i32, z: i32) -> RegionPosition
pub fn from_chunk_position(chunk_x: i32, chunk_z: i32) -> RegionPosition
Trait Implementations§
Source§impl Clone for RegionPosition
impl Clone for RegionPosition
Source§fn clone(&self) -> RegionPosition
fn clone(&self) -> RegionPosition
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 RegionPosition
impl Debug for RegionPosition
Source§impl Ord for RegionPosition
impl Ord for RegionPosition
Source§fn cmp(&self, other: &RegionPosition) -> Ordering
fn cmp(&self, other: &RegionPosition) -> 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 RegionPosition
impl PartialEq for RegionPosition
Source§fn eq(&self, other: &RegionPosition) -> bool
fn eq(&self, other: &RegionPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RegionPosition
impl PartialOrd for RegionPosition
impl Copy for RegionPosition
impl Eq for RegionPosition
impl StructuralPartialEq for RegionPosition
Auto Trait Implementations§
impl Freeze for RegionPosition
impl RefUnwindSafe for RegionPosition
impl Send for RegionPosition
impl Sync for RegionPosition
impl Unpin for RegionPosition
impl UnsafeUnpin for RegionPosition
impl UnwindSafe for RegionPosition
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