pub struct ProgressiveLoader { /* private fields */ }Expand description
Progressive loader for prioritized tile loading
Implementations§
Source§impl ProgressiveLoader
impl ProgressiveLoader
Sourcepub fn prioritize_tiles(&self, tiles: &[TileCoord]) -> Vec<TileCoord>
pub fn prioritize_tiles(&self, tiles: &[TileCoord]) -> Vec<TileCoord>
Prioritizes tiles by distance from center
Sourcepub fn mark_loaded(&mut self, coord: TileCoord)
pub fn mark_loaded(&mut self, coord: TileCoord)
Marks a tile as loaded
Trait Implementations§
Source§impl Clone for ProgressiveLoader
impl Clone for ProgressiveLoader
Source§fn clone(&self) -> ProgressiveLoader
fn clone(&self) -> ProgressiveLoader
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 ProgressiveLoader
impl Debug for ProgressiveLoader
Auto Trait Implementations§
impl Freeze for ProgressiveLoader
impl RefUnwindSafe for ProgressiveLoader
impl Send for ProgressiveLoader
impl Sync for ProgressiveLoader
impl Unpin for ProgressiveLoader
impl UnsafeUnpin for ProgressiveLoader
impl UnwindSafe for ProgressiveLoader
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