#[non_exhaustive]pub struct Hit<'a> {
pub property: &'a Property,
pub primitive: &'a Primitive,
pub primitive_index: usize,
}Expand description
The result of a point query: a property and the primitive that contains the point.
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.property: &'a PropertyThe property.
primitive: &'a PrimitiveThe primitive that contains the point.
primitive_index: usizeIndex of the primitive within the property.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Hit<'a>
impl<'a> RefUnwindSafe for Hit<'a>
impl<'a> Send for Hit<'a>
impl<'a> Sync for Hit<'a>
impl<'a> Unpin for Hit<'a>
impl<'a> UnsafeUnpin for Hit<'a>
impl<'a> UnwindSafe for Hit<'a>
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