pub struct ScanlineP8 { /* private fields */ }Expand description
Packed scanline container with RLE compression for solid (uniform-cover) spans.
Port of C++ scanline_p8. Solid spans store a negative len and a single
cover value, reducing memory for large filled areas.
Implementations§
Trait Implementations§
Source§impl Default for ScanlineP8
impl Default for ScanlineP8
Source§impl Scanline for ScanlineP8
impl Scanline for ScanlineP8
Source§fn reset_spans(&mut self)
fn reset_spans(&mut self)
Prepare for a new scanline, clearing all span data.
Source§fn add_cell(&mut self, x: i32, cover: u32)
fn add_cell(&mut self, x: i32, cover: u32)
Add a single cell at position
x with coverage cover.Auto Trait Implementations§
impl Freeze for ScanlineP8
impl RefUnwindSafe for ScanlineP8
impl Send for ScanlineP8
impl Sync for ScanlineP8
impl Unpin for ScanlineP8
impl UnwindSafe for ScanlineP8
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