pub struct TilePrefetcher {
pub radius: u8,
pub max_zoom_delta: u8,
}Expand description
Pre-fetches neighboring tiles based on the current access pattern.
Fields§
§radius: u8How many tiles around the current tile to prefetch (Chebyshev radius).
max_zoom_delta: u8Prefetch this many zoom levels above and below the current zoom.
Implementations§
Source§impl TilePrefetcher
impl TilePrefetcher
Sourcepub fn new(radius: u8) -> Self
pub fn new(radius: u8) -> Self
Creates a new TilePrefetcher with the given radius and a default
max_zoom_delta of 1.
Auto Trait Implementations§
impl Freeze for TilePrefetcher
impl RefUnwindSafe for TilePrefetcher
impl Send for TilePrefetcher
impl Sync for TilePrefetcher
impl Unpin for TilePrefetcher
impl UnsafeUnpin for TilePrefetcher
impl UnwindSafe for TilePrefetcher
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