pub struct Path {
pub id: String,
pub transform: Transform,
pub visibility: Visibility,
pub fill: Option<Fill>,
pub stroke: Option<Stroke>,
pub marker: Box<PathMarker>,
pub segments: Vec<PathSegment>,
}
Expand description
A path element.
Fields
id: String
Element’s ID.
Taken from the SVG itself. Isn’t automatically generated. Can be empty.
transform: Transform
Element transform.
visibility: Visibility
Element visibility.
fill: Option<Fill>
Fill style.
stroke: Option<Stroke>
Stroke style.
marker: Box<PathMarker>
Marker.
segments: Vec<PathSegment>
Segments list.
All segments are in absolute coordinates.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more