pub enum Convexity {
Convex,
Concave,
}Expand description
Whether a subpath is convex, which selects the fill strategy.
Convex paths take a fan-fill fast path that skips both tessellation and the
stencil pass, so detection is worth doing — but a wrong Convex answer
renders incorrectly, while a wrong Concave answer only costs speed.
Detection is therefore conservative: anything it cannot prove convex is
reported Convexity::Concave.
Variants§
Trait Implementations§
impl Copy for Convexity
impl Eq for Convexity
impl StructuralPartialEq for Convexity
Auto Trait Implementations§
impl Freeze for Convexity
impl RefUnwindSafe for Convexity
impl Send for Convexity
impl Sync for Convexity
impl Unpin for Convexity
impl UnsafeUnpin for Convexity
impl UnwindSafe for Convexity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more