pub struct HitInfo<'a> {
pub tile_id: TileId,
pub pixels_to_tile_units: f32,
pub has_ground: bool,
pub query_geometry: Cow<'a, [PointI16]>,
pub screen_geometry: Cow<'a, [ScreenPoint]>,
pub feature_ring_count: usize,
}Expand description
Metadata snapshot for a tile-feature hit test (LayerInstance::hit).
Fields§
§tile_id: TileId§pixels_to_tile_units: f32§has_ground: bool§query_geometry: Cow<'a, [PointI16]>§screen_geometry: Cow<'a, [ScreenPoint]>§feature_ring_count: usizeTrait Implementations§
Auto Trait Implementations§
impl<'a> Forget for HitInfo<'a>
impl<'a> Freeze for HitInfo<'a>where
&'a [PointI16]: Freeze,
Vec<PointI16>: Freeze,
&'a [ScreenPoint]: Freeze,
Vec<ScreenPoint>: Freeze,
impl<'a> Move for HitInfo<'a>
impl<'a> RefUnwindSafe for HitInfo<'a>
impl<'a> Send for HitInfo<'a>
impl<'a> Sync for HitInfo<'a>
impl<'a> Unpin for HitInfo<'a>where
&'a [PointI16]: Unpin,
Vec<PointI16>: Unpin,
&'a [ScreenPoint]: Unpin,
Vec<ScreenPoint>: Unpin,
impl<'a> UnsafeUnpin for HitInfo<'a>where
&'a [PointI16]: UnsafeUnpin,
Vec<PointI16>: UnsafeUnpin,
&'a [ScreenPoint]: UnsafeUnpin,
Vec<ScreenPoint>: UnsafeUnpin,
impl<'a> UnwindSafe for HitInfo<'a>where
&'a [PointI16]: UnwindSafe,
Vec<PointI16>: UnwindSafe,
&'a [ScreenPoint]: UnwindSafe,
Vec<ScreenPoint>: 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