pub struct BlockPos {
pub raw: u16,
}
Expand description
BlockPos addresses a node within a block It is equivalent to (16*z + y)*16 + x, where x,y,z are from 0 to 15.
Fields§
§raw: u16
Implementations§
Trait Implementations§
Source§impl Deserialize for BlockPos
impl Deserialize for BlockPos
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
impl StructuralPartialEq for BlockPos
Auto Trait Implementations§
impl Freeze for BlockPos
impl RefUnwindSafe for BlockPos
impl Send for BlockPos
impl Sync for BlockPos
impl Unpin for BlockPos
impl UnwindSafe for BlockPos
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