pub enum FillRule {
NonZero,
EvenOdd,
}Expand description
Which rule decides whether a point is inside the path.
Variants§
NonZero
Inside where the winding number is non-zero. The default, and what a glyph wants: a glyph’s outer and inner contours usually run the same way, so non-zero makes the counter the same colour.
EvenOdd
Inside where the crossing count is odd. This is the rule that punches a hole in a nested contour regardless of its 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