pub struct ChunkCoordinate {
pub x: i32,
pub y: i32,
pub z: i32,
}Fields§
§x: i32§y: i32§z: i32Implementations§
Source§impl ChunkCoordinate
impl ChunkCoordinate
pub fn new(x: i32, y: i32, z: i32) -> Self
pub fn with_offset(&self, offset: ChunkOffset) -> BlockCoordinate
pub fn manhattan_distance(&self, other: ChunkCoordinate) -> u32
pub fn l_infinity_norm_distance(&self, other: ChunkCoordinate) -> u32
pub fn is_in_bounds(&self) -> bool
pub fn try_delta(&self, x: i32, y: i32, z: i32) -> Option<ChunkCoordinate>
Trait Implementations§
Source§impl Clone for ChunkCoordinate
impl Clone for ChunkCoordinate
Source§fn clone(&self) -> ChunkCoordinate
fn clone(&self) -> ChunkCoordinate
Returns a duplicate 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 ChunkCoordinate
impl Debug for ChunkCoordinate
Source§impl From<&ChunkCoordinate> for ChunkCoordinate
impl From<&ChunkCoordinate> for ChunkCoordinate
Source§fn from(value: &ChunkCoordinate) -> Self
fn from(value: &ChunkCoordinate) -> Self
Converts to this type from the input type.
Source§impl From<ChunkCoordinate> for ChunkCoordinate
impl From<ChunkCoordinate> for ChunkCoordinate
Source§fn from(value: ChunkCoordinate) -> Self
fn from(value: ChunkCoordinate) -> Self
Converts to this type from the input type.
Source§impl From<ChunkCoordinate> for ChunkCoordinate
impl From<ChunkCoordinate> for ChunkCoordinate
Source§fn from(value: ChunkCoordinate) -> Self
fn from(value: ChunkCoordinate) -> Self
Converts to this type from the input type.
Source§impl Hash for ChunkCoordinate
impl Hash for ChunkCoordinate
Source§impl PartialEq for ChunkCoordinate
impl PartialEq for ChunkCoordinate
impl Copy for ChunkCoordinate
impl Eq for ChunkCoordinate
impl StructuralPartialEq for ChunkCoordinate
Auto Trait Implementations§
impl Freeze for ChunkCoordinate
impl RefUnwindSafe for ChunkCoordinate
impl Send for ChunkCoordinate
impl Sync for ChunkCoordinate
impl Unpin for ChunkCoordinate
impl UnwindSafe for ChunkCoordinate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request