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
Whitespace
Fields
Segment(SVGPathSegment)
A SVG path segment tokens struct
Sign
Plus and minus numeric sign tokens
Number
Number token
Fields
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 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 SVGPathCSTNode
impl Debug for SVGPathCSTNode
Source§impl PartialEq for SVGPathCSTNode
impl PartialEq for SVGPathCSTNode
impl StructuralPartialEq for SVGPathCSTNode
Auto Trait Implementations§
impl Freeze for SVGPathCSTNode
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