pub struct BlockHit {
pub pos: BlockPos,
pub face: Face,
pub hit: (f64, f64, f64),
}Expand description
A block a ray stopped at.
Fields§
§pos: BlockPos§face: FaceThe face the ray entered through.
hit: (f64, f64, f64)The exact hit point (on the block’s surface).
Implementations§
Trait Implementations§
impl Copy for BlockHit
impl StructuralPartialEq for BlockHit
Auto Trait Implementations§
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