pub enum FillRule {
NonZero,
EvenOdd,
}Expand description
How the interior of a self-intersecting path is determined.
Only the fill operation consults this; strokes are unaffected.
Variants§
NonZero
Counts winding direction: a point inside an odd number of same-direction contours is filled.
This is the default and matches what chart geometry expects — a donut hole winds the opposite way from the outer ring, so it is punched out.
EvenOdd
Counts crossings: a point inside an odd number of contours is filled, regardless of direction.
Trait Implementations§
impl Copy for FillRule
impl Eq for FillRule
impl StructuralPartialEq for FillRule
Auto Trait Implementations§
impl Freeze for FillRule
impl RefUnwindSafe for FillRule
impl Send for FillRule
impl Sync for FillRule
impl Unpin for FillRule
impl UnsafeUnpin for FillRule
impl UnwindSafe for FillRule
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