pub struct TileBuffer<const N: usize, R: AsyncRangeRead + 'static> { /* private fields */ }
Expand description
TileBuffer structure
Implementations§
Source§impl<const N: usize, R: AsyncRangeRead> TileBuffer<N, R>
impl<const N: usize, R: AsyncRangeRead> TileBuffer<N, R>
Sourcepub fn new_with_tile_size(inner: R, tile_size: usize) -> Self
pub fn new_with_tile_size(inner: R, tile_size: usize) -> Self
Sourcepub fn new_with_tile_size_and_offset(
inner: R,
tile_size: usize,
tile_pointer: usize,
) -> Self
pub fn new_with_tile_size_and_offset( inner: R, tile_size: usize, tile_pointer: usize, ) -> Self
Sourcepub fn set_offset(&mut self, new_offset: usize)
pub fn set_offset(&mut self, new_offset: usize)
Set new offset calling that method will recalculate mappings, reuse already loaded tiles and stage the ones which not loaded
Trait Implementations§
Source§impl<const N: usize, R: AsyncRangeRead> AsyncRead for TileBuffer<N, R>
impl<const N: usize, R: AsyncRangeRead> AsyncRead for TileBuffer<N, R>
Source§impl<const N: usize, R: AsyncRangeRead> AsyncSeek for TileBuffer<N, R>
impl<const N: usize, R: AsyncRangeRead> AsyncSeek for TileBuffer<N, R>
Auto Trait Implementations§
impl<const N: usize, R> Freeze for TileBuffer<N, R>
impl<const N: usize, R> !RefUnwindSafe for TileBuffer<N, R>
impl<const N: usize, R> Send for TileBuffer<N, R>
impl<const N: usize, R> Sync for TileBuffer<N, R>
impl<const N: usize, R> Unpin for TileBuffer<N, R>
impl<const N: usize, R> !UnwindSafe for TileBuffer<N, R>
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