pub struct ArenaTile<'a> {
pub x: usize,
pub y: usize,
pub width: usize,
pub height: usize,
pub data: &'a [u8],
}Expand description
A tile whose pixel data resides in an Arena.
The raw bytes live in the arena’s memory block; dropping an ArenaTile does
not free memory. The arena reclaims all tiles when it is reset or dropped.
Fields§
§x: usizeX offset in the parent buffer (pixels)
y: usizeY offset in the parent buffer (pixels)
width: usizeWidth of this tile (pixels)
height: usizeHeight of this tile (pixels)
data: &'a [u8]Raw bytes copied from the parent buffer
Auto Trait Implementations§
impl<'a> Freeze for ArenaTile<'a>
impl<'a> RefUnwindSafe for ArenaTile<'a>
impl<'a> Send for ArenaTile<'a>
impl<'a> Sync for ArenaTile<'a>
impl<'a> Unpin for ArenaTile<'a>
impl<'a> UnsafeUnpin for ArenaTile<'a>
impl<'a> UnwindSafe for ArenaTile<'a>
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