pub enum PathOperation {
Difference,
Intersect,
Union,
Xor,
ReverseDifference,
}Expand description
PathOperation is how Path::combine joins the areas of two paths:
Skia’s SkPathOp, dart:ui’s PathOperation.
Variants§
Difference
Difference is the first path’s area outside the second.
Intersect
Intersect is the area inside both paths.
Union
Union is the area inside either path.
Xor
Xor is the area inside exactly one of the paths.
ReverseDifference
ReverseDifference is the second path’s area outside the first.
Trait Implementations§
Source§impl Clone for PathOperation
impl Clone for PathOperation
Source§fn clone(&self) -> PathOperation
fn clone(&self) -> PathOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PathOperation
Source§impl Debug for PathOperation
impl Debug for PathOperation
impl Eq for PathOperation
Source§impl Hash for PathOperation
impl Hash for PathOperation
Source§impl PartialEq for PathOperation
impl PartialEq for PathOperation
impl StructuralPartialEq for PathOperation
Auto Trait Implementations§
impl Forget for PathOperation
impl Freeze for PathOperation
impl Move for PathOperation
impl RefUnwindSafe for PathOperation
impl Send for PathOperation
impl Sync for PathOperation
impl Unpin for PathOperation
impl UnsafeUnpin for PathOperation
impl UnwindSafe for PathOperation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.