pub struct PickContext<'a> {
pub camera: &'a Camera,
pub area: Rect,
pub viewport: Viewport,
pub target: (f64, f64),
}Expand description
Where to look for features: target is a dot position relative to area.
Fields§
§camera: &'a CameraThe camera.
area: RectThe map’s area on screen.
viewport: ViewportMaps world and lon/lat coordinates to dots.
target: (f64, f64)The spot to look under, in dots relative to area.
Auto Trait Implementations§
impl<'a> Freeze for PickContext<'a>
impl<'a> RefUnwindSafe for PickContext<'a>
impl<'a> Send for PickContext<'a>
impl<'a> Sync for PickContext<'a>
impl<'a> Unpin for PickContext<'a>
impl<'a> UnsafeUnpin for PickContext<'a>
impl<'a> UnwindSafe for PickContext<'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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more