concept svg in category rust
appears as: n SVG

This is an excerpt from Manning's book Rust in Action.
The
convert()function makes use of theArtiststruct. Its role is to convert theVec<Operation>fromparse()to aVec<Command>. That output that will be used later to generate an SVG. As a nod to the LOGO language, theArtistis given the local variable nameturtle.