pub struct PathNode {
pub path: Path,
pub fill: Option<Paint>,
pub stroke: Option<Stroke>,
pub fill_rule: FillRule,
}Expand description
A drawn path with optional fill and stroke.
SVG <path> and PDF path-painting operators (f, S, B, f*,
B*) both express “one path, optional fill, optional stroke”, so a
single struct covers both formats. At least one of fill / stroke
would normally be Some to produce visible output.
Fields§
§path: Path§fill: Option<Paint>§stroke: Option<Stroke>§fill_rule: FillRuleTrait Implementations§
Auto Trait Implementations§
impl Freeze for PathNode
impl RefUnwindSafe for PathNode
impl Send for PathNode
impl Sync for PathNode
impl Unpin for PathNode
impl UnsafeUnpin for PathNode
impl UnwindSafe for PathNode
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