#[non_exhaustive]pub struct BlockHit {
pub pos: BlockPos,
pub face: Face,
pub hit: Vec3,
pub distance: f64,
}Expand description
A block the crosshair is on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pos: BlockPosThe block.
face: FaceThe face hit.
hit: Vec3The point hit (absolute).
distance: f64Distance from the eyes.
Trait Implementations§
impl Copy for BlockHit
impl StructuralPartialEq for BlockHit
Auto Trait Implementations§
impl Forget for BlockHit
impl Freeze for BlockHit
impl RefUnwindSafe for BlockHit
impl Send for BlockHit
impl Sync for BlockHit
impl Unpin for BlockHit
impl UnsafeUnpin for BlockHit
impl UnwindSafe for BlockHit
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