Struct Hit
pub struct Hit {
pub block_x: i32,
pub block_y: i32,
pub block_z: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub block: BlockKey,
}Expand description
The block a ray along the view meets.
Fields§
§block_x: i32§block_y: i32§block_z: i32§x: f64Where the ray meets the block.
y: f64§z: f64§block: BlockKeyThe block’s resolved identity, without state properties.
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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