MCPcopy Create free account
hub / github.com/DioxusLabs/anyrender / new

Method new

crates/anyrender/src/svg_path_parser.rs:195–201  ·  view source on GitHub ↗
(data: &str)

Source from the content-addressed store, hash-verified

193
194impl SvgLexer<'_> {
195 fn new(data: &str) -> SvgLexer<'_> {
196 SvgLexer {
197 data,
198 ix: 0,
199 last_pt: Point::ORIGIN,
200 }
201 }
202
203 fn skip_ws(&mut self) {
204 while let Some(&c) = self.data.as_bytes().get(self.ix) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected