pub struct Intersect {
pub x0: i32,
pub x1: i32,
pub count: i32,
}Expand description
One intersection entry for a scanline.
Matches SplashIntersect in splash/SplashXPathScanner.h.
Fields§
§x0: i32Left pixel of the intersection span, inclusive.
x1: i32Right pixel of the intersection span, inclusive. Always x0 ≤ x1.
count: i32Winding contribution: +1 or -1 for sloped/vertical segments, 0 for horizontal. Used by non-zero winding number fill rule; ignored by even-odd.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Intersect
impl RefUnwindSafe for Intersect
impl Send for Intersect
impl Sync for Intersect
impl Unpin for Intersect
impl UnsafeUnpin for Intersect
impl UnwindSafe for Intersect
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