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
The heap it holds, as a cache counts it.
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 Freeze for TileCoverage
impl RefUnwindSafe for TileCoverage
impl Send for TileCoverage
impl Sync for TileCoverage
impl Unpin for TileCoverage
impl UnsafeUnpin for TileCoverage
impl UnwindSafe for TileCoverage
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