pub struct SVGPathSegment {
pub args: Vec<f64>,
pub cst: Vec<SVGPathCSTNode>,
pub command: &'static SVGPathCommand,
pub start: usize,
pub end: usize,
pub chain_start: usize,
pub chain_end: usize,
pub chained: bool,
}
Expand description
A SVG path segment
Represents a segment in the SVG path concrete syntax tree. It includes in the SVG path string.
Fields§
§args: Vec<f64>
Explicit argument values passed to the command
cst: Vec<SVGPathCSTNode>
CST nodes that represent sintactically the command arguments
command: &'static SVGPathCommand
SVG path command that uses this segment, even implicit
start: usize
Start index of the segment in the SVG path string
end: usize
End index of the segment in the SVG path string
chain_start: usize
Start index of the chain of segments in the SVG path string.
Only valid if chained
is true
.
chain_end: usize
End index of the chain of segments in the SVG path string.
Only valid if chained
is true
.
chained: bool
Whether the segment is chained to the previous one
Trait Implementations§
Source§impl Clone for SVGPathSegment
impl Clone for SVGPathSegment
Source§fn clone(&self) -> SVGPathSegment
fn clone(&self) -> SVGPathSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
impl StructuralPartialEq for SVGPathSegment
Auto Trait Implementations§
impl Freeze for SVGPathSegment
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