pub struct UpdateParameters {Show 27 fields
pub style_loaded: bool,
pub mode: MapMode,
pub pixel_ratio: f32,
pub time_point: Option<Instant>,
pub view: View,
pub min_zoom: f64,
pub max_zoom: f64,
pub camera_moving: bool,
pub style: Arc<Style>,
pub font_faces: Option<Arc<FontFaces>>,
pub sprite_loaded: bool,
pub feature_states: Arc<BTreeMap<String, SourceFeatureStates>>,
pub file_source: Option<Arc<dyn FileSource>>,
pub prefetch_zoom_delta: u8,
pub still_image_request: bool,
pub still_image_request_id: u64,
pub update_id: u64,
pub cross_source_collisions: bool,
pub fast_pfor_enabled: bool,
pub terrain: TerrainOptions,
pub elevation: Option<Arc<dyn Elevation>>,
pub tile_lod_min_radius: f64,
pub tile_lod_scale: f64,
pub tile_lod_pitch_threshold: f64,
pub tile_lod_zoom_shift: f64,
pub tile_lod_mode: TileLodMode,
pub subdivision_granularity: SubdivisionGranularitySetting,
}Fields§
§style_loaded: bool§mode: MapMode§pixel_ratio: f32§time_point: Option<Instant>The frame’s time; None in still modes, which have no clock and show
every transition and fade as ended.
view: ViewThe view the frame shows.
min_zoom: f64The map’s zoom range, which the sources load tiles within.
max_zoom: f64§camera_moving: boolWhether a gesture or an animation moves the camera, which the frame draws for speed rather than crispness.
style: Arc<Style>The version of the style to draw. A renderer compares it with the
version it drew last (mln_style::diff::StyleDiff).
font_faces: Option<Arc<FontFaces>>The faces that the style’s text draws with: the style’s own
font-faces, then the app’s fallback faces
(style_font_faces).
sprite_loaded: bool§feature_states: Arc<BTreeMap<String, SourceFeatureStates>>The map’s feature state. Each render source takes its own, in place of what it held.
file_source: Option<Arc<dyn FileSource>>§prefetch_zoom_delta: u8§still_image_request: boolFor still image requests, render requested.
still_image_request_id: u64Identifies the still image request: each new one retries the resources that failed to load.
update_id: u64Identifies the update among its map’s, which number them from 1 in
the order they’re made. A frame’s report names the update it drew
(RendererEvent::RenderFrameFinished).
cross_source_collisions: bool§fast_pfor_enabled: bool§terrain: TerrainOptionsHow the map draws its terrain.
elevation: Option<Arc<dyn Elevation>>The terrain’s ground that view stands on: the snapshot of it that
the renderer last reported (RendererEvent::TerrainElevation) and
the map applied, or None. A frame is complete only when this is the
renderer’s current snapshot, the same Arc, or both are None. A
still image draws no other.
tile_lod_min_radius: f64§tile_lod_scale: f64§tile_lod_pitch_threshold: f64§tile_lod_zoom_shift: f64§tile_lod_mode: TileLodMode§subdivision_granularity: SubdivisionGranularitySettingTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateParameters
impl !UnwindSafe for UpdateParameters
impl Forget for UpdateParameters
impl Freeze for UpdateParameterswhere
*const ArcInner<Style> is !null: Freeze,
PhantomData<ArcInner<Style>>: Freeze,
*const ArcInner<Vec<FontFace>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFace>>>: Freeze,
*const ArcInner<BTreeMap<String, SourceFeatureStates>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, SourceFeatureStates>>>: Freeze,
*const ArcInner<dyn FileSource> is !null: Freeze,
PhantomData<ArcInner<dyn FileSource>>: Freeze,
*const ArcInner<dyn Elevation> is !null: Freeze,
PhantomData<ArcInner<dyn Elevation>>: Freeze,
impl Move for UpdateParameters
impl Send for UpdateParameters
impl Sync for UpdateParameters
impl Unpin for UpdateParameters
impl UnsafeUnpin for UpdateParameterswhere
*const ArcInner<Style> is !null: UnsafeUnpin,
PhantomData<ArcInner<Style>>: UnsafeUnpin,
*const ArcInner<Vec<FontFace>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFace>>>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, SourceFeatureStates>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, SourceFeatureStates>>>: UnsafeUnpin,
*const ArcInner<dyn FileSource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn FileSource>>: UnsafeUnpin,
*const ArcInner<dyn Elevation> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Elevation>>: UnsafeUnpin,
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
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> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.