pub struct LoadingPlaceholder {
pub tile: TileId,
pub bounds: WorldBounds,
pub animation_phase: f32,
}Expand description
A single loading-placeholder tile emitted for rendering.
Renderers draw a styled rectangle at bounds with the colour and
opacity derived from the associated PlaceholderStyle.
Fields§
§tile: TileIdThe tile this placeholder stands in for.
bounds: WorldBoundsWorld-space bounding box of the tile (Web Mercator meters).
animation_phase: f32Animation phase in [0.0, 1.0) for the shimmer effect.
Derived from (time * shimmer_speed) % 1.0 so all placeholders
pulse in sync.
Trait Implementations§
Source§impl Clone for LoadingPlaceholder
impl Clone for LoadingPlaceholder
Source§fn clone(&self) -> LoadingPlaceholder
fn clone(&self) -> LoadingPlaceholder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadingPlaceholder
impl Debug for LoadingPlaceholder
Source§impl PartialEq for LoadingPlaceholder
impl PartialEq for LoadingPlaceholder
impl StructuralPartialEq for LoadingPlaceholder
Auto Trait Implementations§
impl Freeze for LoadingPlaceholder
impl RefUnwindSafe for LoadingPlaceholder
impl Send for LoadingPlaceholder
impl Sync for LoadingPlaceholder
impl Unpin for LoadingPlaceholder
impl UnsafeUnpin for LoadingPlaceholder
impl UnwindSafe for LoadingPlaceholder
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