Struct usvg::PathMarker
source · pub struct PathMarker {
pub start: Option<String>,
pub mid: Option<String>,
pub end: Option<String>,
pub stroke: Option<StrokeWidth>,
}
Expand description
A path marker properties.
Fields
start: Option<String>
Start marker.
marker-start
in SVG.
mid: Option<String>
Middle marker
marker-mid
in SVG.
end: Option<String>
End marker
marker-end
in SVG.
stroke: Option<StrokeWidth>
Marker stroke.
This value contains a copy of the stroke-width
value.
usvg
will set Path::stroke
to None
if a path doesn’t have a stroke,
but marker rendering still relies on the stroke-width
value, even when stroke=none
.
So we have to store it separately.
Trait Implementations
sourceimpl Clone for PathMarker
impl Clone for PathMarker
sourcefn clone(&self) -> PathMarker
fn clone(&self) -> PathMarker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PathMarker
impl Debug for PathMarker
Auto Trait Implementations
impl RefUnwindSafe for PathMarker
impl Send for PathMarker
impl Sync for PathMarker
impl Unpin for PathMarker
impl UnwindSafe for PathMarker
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