pub struct ChunkPosition<T> {
pub x: T,
pub z: T,
}
Fields§
§x: T
§z: T
Implementations§
Trait Implementations§
Source§impl<T> Clone for ChunkPosition<T>where
T: Clone,
impl<T> Clone for ChunkPosition<T>where
T: Clone,
Source§impl<T> Debug for ChunkPosition<T>where
T: Debug,
impl<T> Debug for ChunkPosition<T>where
T: Debug,
Source§impl<T> Deserialize for ChunkPosition<T>where
T: Deserialize,
impl<T> Deserialize for ChunkPosition<T>where
T: Deserialize,
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl<T> Display for ChunkPosition<T>where
T: Display,
impl<T> Display for ChunkPosition<T>where
T: Display,
Source§impl<'a, T> From<&'a ChunkPosition<T>> for (&'a T, &'a T)
impl<'a, T> From<&'a ChunkPosition<T>> for (&'a T, &'a T)
Source§fn from(other: &'a ChunkPosition<T>) -> Self
fn from(other: &'a ChunkPosition<T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T> From<&'a ChunkPosition<T>> for (T, T)where
T: Clone,
impl<'a, T> From<&'a ChunkPosition<T>> for (T, T)where
T: Clone,
Source§fn from(other: &'a ChunkPosition<T>) -> Self
fn from(other: &'a ChunkPosition<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<(T, T)> for ChunkPosition<T>
impl<T> From<(T, T)> for ChunkPosition<T>
Source§impl<T> From<ChunkPosition<T>> for (T, T)
impl<T> From<ChunkPosition<T>> for (T, T)
Source§fn from(other: ChunkPosition<T>) -> Self
fn from(other: ChunkPosition<T>) -> Self
Converts to this type from the input type.
Source§impl From<ChunkPosition<VarInt>> for PlayUpdateViewPositionSpec
impl From<ChunkPosition<VarInt>> for PlayUpdateViewPositionSpec
Source§fn from(other: ChunkPosition<VarInt>) -> Self
fn from(other: ChunkPosition<VarInt>) -> Self
Converts to this type from the input type.
Source§impl From<ChunkPosition<VarInt>> for PlayUpdateViewPositionSpec
impl From<ChunkPosition<VarInt>> for PlayUpdateViewPositionSpec
Source§fn from(other: ChunkPosition<VarInt>) -> Self
fn from(other: ChunkPosition<VarInt>) -> Self
Converts to this type from the input type.
Source§impl From<ChunkPosition<i32>> for PlayUnloadChunkSpec
impl From<ChunkPosition<i32>> for PlayUnloadChunkSpec
Source§fn from(other: ChunkPosition<i32>) -> Self
fn from(other: ChunkPosition<i32>) -> Self
Converts to this type from the input type.
Source§impl From<ChunkPosition<i32>> for PlayUnloadChunkSpec
impl From<ChunkPosition<i32>> for PlayUnloadChunkSpec
Source§fn from(other: ChunkPosition<i32>) -> Self
fn from(other: ChunkPosition<i32>) -> Self
Converts to this type from the input type.
Source§impl From<PlayUnloadChunkSpec> for ChunkPosition<i32>
impl From<PlayUnloadChunkSpec> for ChunkPosition<i32>
Source§fn from(other: PlayUnloadChunkSpec) -> Self
fn from(other: PlayUnloadChunkSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayUnloadChunkSpec> for ChunkPosition<i32>
impl From<PlayUnloadChunkSpec> for ChunkPosition<i32>
Source§fn from(other: PlayUnloadChunkSpec) -> Self
fn from(other: PlayUnloadChunkSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayUpdateViewPositionSpec> for ChunkPosition<VarInt>
impl From<PlayUpdateViewPositionSpec> for ChunkPosition<VarInt>
Source§fn from(other: PlayUpdateViewPositionSpec) -> Self
fn from(other: PlayUpdateViewPositionSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayUpdateViewPositionSpec> for ChunkPosition<VarInt>
impl From<PlayUpdateViewPositionSpec> for ChunkPosition<VarInt>
Source§fn from(other: PlayUpdateViewPositionSpec) -> Self
fn from(other: PlayUpdateViewPositionSpec) -> Self
Converts to this type from the input type.
Source§impl<T> Hash for ChunkPosition<T>where
T: Hash,
impl<T> Hash for ChunkPosition<T>where
T: Hash,
Source§impl<T, Rhs> PartialEq<ChunkPosition<Rhs>> for ChunkPosition<T>where
T: PartialEq<Rhs>,
impl<T, Rhs> PartialEq<ChunkPosition<Rhs>> for ChunkPosition<T>where
T: PartialEq<Rhs>,
Source§fn eq(&self, other: &ChunkPosition<Rhs>) -> bool
fn eq(&self, other: &ChunkPosition<Rhs>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &ChunkPosition<Rhs>) -> bool
fn ne(&self, other: &ChunkPosition<Rhs>) -> bool
Tests for
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.Source§impl<T> Serialize for ChunkPosition<T>where
T: Serialize,
impl<T> Serialize for ChunkPosition<T>where
T: Serialize,
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl<T> Copy for ChunkPosition<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for ChunkPosition<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChunkPosition<T>where
T: RefUnwindSafe,
impl<T> Send for ChunkPosition<T>where
T: Send,
impl<T> Sync for ChunkPosition<T>where
T: Sync,
impl<T> Unpin for ChunkPosition<T>where
T: Unpin,
impl<T> UnwindSafe for ChunkPosition<T>where
T: UnwindSafe,
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