pub struct ScreenPoint {
pub x: f64,
pub y: f64,
}Expand description
A point on the screen, in logical pixels from the map’s top-left corner.
See mln_screen_point in the
C API reference.
Fields§
§x: f64§y: f64Implementations§
Trait Implementations§
Source§impl Clone for ScreenPoint
impl Clone for ScreenPoint
Source§fn clone(&self) -> ScreenPoint
fn clone(&self) -> ScreenPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScreenPoint
Source§impl Debug for ScreenPoint
impl Debug for ScreenPoint
Source§impl Default for ScreenPoint
impl Default for ScreenPoint
Source§fn default() -> ScreenPoint
fn default() -> ScreenPoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScreenPoint
impl PartialEq for ScreenPoint
impl StructuralPartialEq for ScreenPoint
Auto Trait Implementations§
impl Freeze for ScreenPoint
impl RefUnwindSafe for ScreenPoint
impl Send for ScreenPoint
impl Sync for ScreenPoint
impl Unpin for ScreenPoint
impl UnsafeUnpin for ScreenPoint
impl UnwindSafe for ScreenPoint
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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