pub struct Vec3i16 {
pub x: i16,
pub y: i16,
pub z: i16,
}Expand description
A 3D vector of i16 values.
Used in the Minecraft protocol for relative entity movement deltas in the Entity Position packet. Each unit represents 1/128 of a block.
Wire format: three big-endian i16 values (x, y, z), 6 bytes total.
Fields§
§x: i16§y: i16§z: i16Trait Implementations§
Source§impl EncodedSize for Vec3i16
A Vec3i16 always occupies 6 bytes (3 × i16).
impl EncodedSize for Vec3i16
A Vec3i16 always occupies 6 bytes (3 × i16).
fn encoded_size(&self) -> usize
impl Copy for Vec3i16
impl Eq for Vec3i16
impl StructuralPartialEq for Vec3i16
Auto Trait Implementations§
impl Freeze for Vec3i16
impl RefUnwindSafe for Vec3i16
impl Send for Vec3i16
impl Sync for Vec3i16
impl Unpin for Vec3i16
impl UnsafeUnpin for Vec3i16
impl UnwindSafe for Vec3i16
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§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.