pub enum SvgCommand {
Show 17 variants
MoveTo(f64, f64),
LineTo(f64, f64),
CurveTo(f64, f64, f64, f64, f64, f64),
ClosePath,
SetFill(f64, f64, f64),
SetFillNone,
SetStroke(f64, f64, f64),
SetStrokeNone,
SetStrokeWidth(f64),
Fill,
Stroke,
FillAndStroke,
SetLineCap(u32),
SetLineJoin(u32),
SaveState,
RestoreState,
SetOpacity(f64),
}Expand description
Drawing commands produced by the SVG parser.
Variants§
MoveTo(f64, f64)
LineTo(f64, f64)
CurveTo(f64, f64, f64, f64, f64, f64)
ClosePath
SetFill(f64, f64, f64)
SetFillNone
SetStroke(f64, f64, f64)
SetStrokeNone
SetStrokeWidth(f64)
Fill
Stroke
FillAndStroke
SetLineCap(u32)
SetLineJoin(u32)
SaveState
RestoreState
SetOpacity(f64)
Set fill and stroke opacity via PDF ExtGState. Value is 0.0–1.0.
Trait Implementations§
Source§impl Clone for SvgCommand
impl Clone for SvgCommand
Source§fn clone(&self) -> SvgCommand
fn clone(&self) -> SvgCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SvgCommand
impl RefUnwindSafe for SvgCommand
impl Send for SvgCommand
impl Sync for SvgCommand
impl Unpin for SvgCommand
impl UnsafeUnpin for SvgCommand
impl UnwindSafe for SvgCommand
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