pub struct MapSnapshot {
pub debug_flags: MapDebugFlag,
pub generation: u64,
pub fully_loaded: bool,
pub rendering_stats_view_enabled: bool,
pub gesture_in_progress: bool,
pub transition_in_progress: bool,
pub event_mask: RuntimeEventFlag,
pub latest_render_update_generation: u64,
pub tile: MapTileSettings,
pub bounds: CameraBounds,
pub free_camera: FreeCamera,
pub view: MapView,
}Expand description
A map’s state, as MapHandle::get_snapshot() reads it.
See mln_map_snapshot in the
C API reference.
Fields§
§debug_flags: MapDebugFlag§generation: u64Grows with each change to the map’s state.
fully_loaded: boolWhether the style and every resource that the view needs have loaded.
rendering_stats_view_enabled: bool§gesture_in_progress: bool§transition_in_progress: bool§event_mask: RuntimeEventFlag§latest_render_update_generation: u64Counts the render updates that the map has made for its render session.
tile: MapTileSettings§bounds: CameraBounds§free_camera: FreeCamera§view: MapViewTrait Implementations§
Source§impl Clone for MapSnapshot
impl Clone for MapSnapshot
Source§fn clone(&self) -> MapSnapshot
fn clone(&self) -> MapSnapshot
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 MapSnapshot
Source§impl Debug for MapSnapshot
impl Debug for MapSnapshot
Source§impl Default for MapSnapshot
impl Default for MapSnapshot
Source§fn default() -> MapSnapshot
fn default() -> MapSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for MapSnapshot
impl PartialEq for MapSnapshot
impl StructuralPartialEq for MapSnapshot
Auto Trait Implementations§
impl Freeze for MapSnapshot
impl RefUnwindSafe for MapSnapshot
impl Send for MapSnapshot
impl Sync for MapSnapshot
impl Unpin for MapSnapshot
impl UnsafeUnpin for MapSnapshot
impl UnwindSafe for MapSnapshot
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