Enum svg_path_cst::SVGPathCSTNode
source · pub enum SVGPathCSTNode {
None,
Whitespace {
wsp: &'static WSP,
start: usize,
end: usize,
},
Segment(SVGPathSegment),
Sign {
sign: &'static Sign,
start: usize,
},
Number {
raw_number: String,
value: f64,
start: usize,
end: usize,
},
Comma {
start: usize,
},
Command(&'static SVGPathCommand),
}Expand description
A CST node
Represents a node in the SVG path concrete syntax tree.
The SVGPathCommand node represents a SVG path command and it
stores children CST nodes that represent the command arguments
in the cst field.
Variants§
None
None token. This is used to represent an empty SVG path with a
explicit "none" value in d attribute.
Whitespace
Fields
Whitespace
Segment(SVGPathSegment)
A SVG path segment tokens struct
Sign
Plus and minus numeric sign tokens
Number
Fields
Number token
Comma
Comma token
Command(&'static SVGPathCommand)
SVG path command token
Trait Implementations§
source§impl Clone for SVGPathCSTNode
impl Clone for SVGPathCSTNode
source§fn clone(&self) -> SVGPathCSTNode
fn clone(&self) -> SVGPathCSTNode
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 SVGPathCSTNode
impl Debug for SVGPathCSTNode
source§impl PartialEq for SVGPathCSTNode
impl PartialEq for SVGPathCSTNode
source§fn eq(&self, other: &SVGPathCSTNode) -> bool
fn eq(&self, other: &SVGPathCSTNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SVGPathCSTNode
Auto Trait Implementations§
impl RefUnwindSafe for SVGPathCSTNode
impl Send for SVGPathCSTNode
impl Sync for SVGPathCSTNode
impl Unpin for SVGPathCSTNode
impl UnwindSafe for SVGPathCSTNode
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