pub struct ScanlineBin { /* private fields */ }Expand description
Binary scanline container — no per-pixel coverage, just on/off spans.
Port of C++ scanline_bin. Useful for non-AA rendering or clipping masks.
Implementations§
Trait Implementations§
Source§impl Default for ScanlineBin
impl Default for ScanlineBin
Source§impl Scanline for ScanlineBin
impl Scanline for ScanlineBin
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 ScanlineBin
impl RefUnwindSafe for ScanlineBin
impl Send for ScanlineBin
impl Sync for ScanlineBin
impl Unpin for ScanlineBin
impl UnwindSafe for ScanlineBin
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