Struct svg_path_cst::SVGPathSegment
source · pub struct SVGPathSegment {
pub command: &'static SVGPathCommand,
pub args: Vec<f64>,
pub cst: Vec<SVGPathCSTNode>,
pub start: usize,
pub end: usize,
pub chained: bool,
pub chain_start: usize,
pub chain_end: usize,
}Expand description
A SVG path segment
Represents a segment in the SVG path concrete syntax tree. It includes in the SVG path string.
Fields§
§command: &'static SVGPathCommandSVG path command that uses this segment, even implicit
args: Vec<f64>Explicit argument values passed to the command
cst: Vec<SVGPathCSTNode>CST nodes that represent sintactically the command arguments
start: usizeStart index of the segment in the SVG path string
end: usizeEnd index of the segment in the SVG path string
chained: boolWhether the segment is chained to the previous one
chain_start: usizeStart index of the chain of segments in the SVG path string.
Only valid if chained is true.
chain_end: usizeEnd index of the chain of segments in the SVG path string.
Only valid if chained is true.
Trait Implementations§
source§impl Clone for SVGPathSegment
impl Clone for SVGPathSegment
source§fn clone(&self) -> SVGPathSegment
fn clone(&self) -> SVGPathSegment
Returns a copy 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 moresource§impl Debug for SVGPathSegment
impl Debug for SVGPathSegment
source§impl PartialEq for SVGPathSegment
impl PartialEq for SVGPathSegment
source§fn eq(&self, other: &SVGPathSegment) -> bool
fn eq(&self, other: &SVGPathSegment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SVGPathSegment
Auto Trait Implementations§
impl RefUnwindSafe for SVGPathSegment
impl Send for SVGPathSegment
impl Sync for SVGPathSegment
impl Unpin for SVGPathSegment
impl UnwindSafe for SVGPathSegment
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