#[non_exhaustive]pub struct Hit {
pub target: Target,
pub distance: f64,
}Expand description
a hit of Scene::pick
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.target: Target§distance: f64pixels from the point to what is drawn of it (0: on it)
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Forget for Hit
impl Freeze for Hit
impl Move for Hit
impl RefUnwindSafe for Hit
impl Send for Hitwhere
RawVecInner: Send,
impl Sync for Hitwhere
RawVecInner: Sync,
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hitwhere
RawVecInner: UnwindSafe,
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