Struct mca_parser::BlockPosition
source · pub struct BlockPosition {
pub x: i32,
pub y: i32,
pub z: i32,
}
Fields§
§x: i32
§y: i32
§z: i32
Trait Implementations§
source§impl Clone for BlockPosition
impl Clone for BlockPosition
source§fn clone(&self) -> BlockPosition
fn clone(&self) -> BlockPosition
Returns a copy 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 BlockPosition
impl Debug for BlockPosition
source§impl Default for BlockPosition
impl Default for BlockPosition
source§fn default() -> BlockPosition
fn default() -> BlockPosition
Returns the “default value” for a type. Read more
source§impl From<BlockPosition> for ChunkPosition
impl From<BlockPosition> for ChunkPosition
source§fn from(value: BlockPosition) -> Self
fn from(value: BlockPosition) -> Self
Converts to this type from the input type.
source§impl From<BlockPosition> for RegionPosition
impl From<BlockPosition> for RegionPosition
source§fn from(value: BlockPosition) -> Self
fn from(value: BlockPosition) -> Self
Converts to this type from the input type.
source§impl From<BlockPosition> for SubChunkPosition
impl From<BlockPosition> for SubChunkPosition
source§fn from(value: BlockPosition) -> Self
fn from(value: BlockPosition) -> Self
Converts to this type from the input type.
source§impl Hash for BlockPosition
impl Hash for BlockPosition
source§impl Ord for BlockPosition
impl Ord for BlockPosition
source§fn cmp(&self, other: &BlockPosition) -> Ordering
fn cmp(&self, other: &BlockPosition) -> Ordering
1.21.0 · 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<BlockPosition> for BlockPosition
impl PartialEq<BlockPosition> for BlockPosition
source§fn eq(&self, other: &BlockPosition) -> bool
fn eq(&self, other: &BlockPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BlockPosition> for BlockPosition
impl PartialOrd<BlockPosition> for BlockPosition
source§fn partial_cmp(&self, other: &BlockPosition) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockPosition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BlockPosition
impl Eq for BlockPosition
impl StructuralEq for BlockPosition
impl StructuralPartialEq for BlockPosition
Auto Trait Implementations§
impl RefUnwindSafe for BlockPosition
impl Send for BlockPosition
impl Sync for BlockPosition
impl Unpin for BlockPosition
impl UnwindSafe for BlockPosition
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