#[non_exhaustive]pub enum RayResult {
Block(BlockHit),
Miss {
pos: BlockPos,
face: Face,
hit: Vec3,
},
None,
}Expand description
What a ray found.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Block(BlockHit)
A block’s ray bounds.
Miss
Nothing; the last block the ray passed that rays go through (vanilla’s “miss” result of the crosshair pick).
Fields
None
Nothing at all.
Trait Implementations§
impl Copy for RayResult
impl StructuralPartialEq for RayResult
Auto Trait Implementations§
impl Forget for RayResult
impl Freeze for RayResult
impl RefUnwindSafe for RayResult
impl Send for RayResult
impl Sync for RayResult
impl Unpin for RayResult
impl UnsafeUnpin for RayResult
impl UnwindSafe for RayResult
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