pub struct TilePrefetcher { /* private fields */ }Expand description
Tile prefetcher
Implementations§
Source§impl TilePrefetcher
impl TilePrefetcher
Sourcepub const fn new(strategy: PrefetchStrategy, pyramid: TilePyramid) -> Self
pub const fn new(strategy: PrefetchStrategy, pyramid: TilePyramid) -> Self
Creates a new tile prefetcher
Sourcepub fn prefetch_for(&self, center: &TileCoord) -> Vec<TileCoord>
pub fn prefetch_for(&self, center: &TileCoord) -> Vec<TileCoord>
Returns tiles to prefetch for a given center tile
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