pub struct Path {
pub segs: Vec<PathSeg>,
pub rule: FillRule,
}Expand description
An arbitrary 2-D path: any number of contours, straight or curved, with a fill rule.
Fields§
§segs: Vec<PathSeg>§rule: FillRuleImplementations§
Source§impl Path
impl Path
Sourcepub fn bounds(&self) -> Rect
pub fn bounds(&self) -> Rect
A conservative bounding box: the hull of every point including control points, which contains the true curve bounds (a bezier stays inside its control hull). Used only to resolve gradient unit points, where being slightly generous costs nothing and computing exact curve extrema would not.
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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