pub struct TileCoverage {
pub origin: (i32, i32),
pub size: (u32, u32),
pub tiles: Vec<TileState>,
pub partial: Vec<[u8; 256]>,
}Expand description
A path’s coverage over a rectangle of whole tiles.
Fields§
§origin: (i32, i32)The first tile’s position, in tiles: pixel (16 x, 16 y).
size: (u32, u32)Tiles across and down.
tiles: Vec<TileState>Each tile, row by row.
partial: Vec<[u8; 256]>The bytes of each partial tile, row by row within it.
Implementations§
Source§impl TileCoverage
impl TileCoverage
Sourcepub fn heap_bytes(&self) -> usize
pub fn heap_bytes(&self) -> usize
Heap bytes held, as the cache counts them.
Trait Implementations§
Source§impl Clone for TileCoverage
impl Clone for TileCoverage
Source§impl Debug for TileCoverage
impl Debug for TileCoverage
Source§impl Default for TileCoverage
impl Default for TileCoverage
impl Eq for TileCoverage
Source§impl PartialEq for TileCoverage
impl PartialEq for TileCoverage
impl StructuralPartialEq for TileCoverage
Auto Trait Implementations§
impl Forget for TileCoverage
impl Freeze for TileCoverage
impl Move for TileCoverage
impl RefUnwindSafe for TileCoverage
impl Send for TileCoveragewhere
RawVecInner: Send,
impl Sync for TileCoveragewhere
RawVecInner: Sync,
impl Unpin for TileCoverage
impl UnsafeUnpin for TileCoveragewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TileState>: UnsafeUnpin,
PhantomData<[u8; 256]>: UnsafeUnpin,
impl UnwindSafe for TileCoveragewhere
RawVecInner: UnwindSafe,
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