pub struct Path {
pub id: String,
pub visibility: Visibility,
pub fill: Option<Fill>,
pub stroke: Option<Stroke>,
pub paint_order: PaintOrder,
pub rendering_mode: ShapeRendering,
pub data: Rc<Path>,
}
Expand description
A path element.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself. Isn’t automatically generated. Can be empty.
visibility: Visibility
Element visibility.
fill: Option<Fill>
Fill style.
stroke: Option<Stroke>
Stroke style.
paint_order: PaintOrder
Fill and stroke paint order.
Since markers will be replaced with regular nodes automatically,
usvg
doesn’t provide the markers
order type. It’s was already done.
paint-order
in SVG.
rendering_mode: ShapeRendering
Rendering mode.
shape-rendering
in SVG.
data: Rc<Path>
Segments list.
All segments are in absolute coordinates.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Path
impl !Send for Path
impl !Sync for Path
impl Unpin 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