pub enum SvgElement {
Line {
p1: Point2D,
p2: Point2D,
stroke_color: Option<u32>,
stroke_width: f64,
layer: String,
},
Rect {
x: f64,
y: f64,
width: f64,
height: f64,
stroke_color: Option<u32>,
fill_color: Option<u32>,
layer: String,
},
Circle {
center: Point2D,
radius: f64,
stroke_color: Option<u32>,
fill_color: Option<u32>,
layer: String,
},
Polyline {
points: Vec<Point2D>,
is_closed: bool,
stroke_color: Option<u32>,
fill_color: Option<u32>,
layer: String,
},
Text {
pos: Point2D,
font_size: f64,
color: Option<u32>,
layer: String,
content: String,
},
}Expand description
Extracted SVG 2D vector element.
Variants§
Trait Implementations§
Source§impl Clone for SvgElement
impl Clone for SvgElement
Source§impl Debug for SvgElement
impl Debug for SvgElement
Source§impl PartialEq for SvgElement
impl PartialEq for SvgElement
impl StructuralPartialEq for SvgElement
Auto Trait Implementations§
impl Freeze for SvgElement
impl RefUnwindSafe for SvgElement
impl Send for SvgElement
impl Sync for SvgElement
impl Unpin for SvgElement
impl UnsafeUnpin for SvgElement
impl UnwindSafe for SvgElement
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more