pub struct CompoundPath {
pub contours: Vec<Animated<VectorPath>>,
}Expand description
Multi-contour geometry: boolean results and stroke expansions produce
outer contours plus holes, which one VectorPath cannot represent.
Fields§
§contours: Vec<Animated<VectorPath>>Every entry is one contour. Linesweeper’s orientation guarantees that holes work under both NonZero and EvenOdd filling.
Implementations§
Source§impl CompoundPath
impl CompoundPath
Sourcepub fn to_bez_path(&self, frame: f64) -> BezPath
pub fn to_bez_path(&self, frame: f64) -> BezPath
All contours flattened into one multi-subpath BezPath at frame.
Trait Implementations§
Source§impl Clone for CompoundPath
impl Clone for CompoundPath
Source§fn clone(&self) -> CompoundPath
fn clone(&self) -> CompoundPath
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 moreSource§impl Debug for CompoundPath
impl Debug for CompoundPath
Source§impl Default for CompoundPath
impl Default for CompoundPath
Source§fn default() -> CompoundPath
fn default() -> CompoundPath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompoundPath
impl<'de> Deserialize<'de> for CompoundPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompoundPath
impl PartialEq for CompoundPath
Source§impl Serialize for CompoundPath
impl Serialize for CompoundPath
impl StructuralPartialEq for CompoundPath
Auto Trait Implementations§
impl Freeze for CompoundPath
impl RefUnwindSafe for CompoundPath
impl Send for CompoundPath
impl Sync for CompoundPath
impl Unpin for CompoundPath
impl UnsafeUnpin for CompoundPath
impl UnwindSafe for CompoundPath
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