Refactoring some repetitive code to a Rust macro

from blog Federico's Blog, | ↗ original
I have started porting the code in librsvg that parses SVG's CSS properties from C to Rust. Many properties have symbolic values: stroke-linejoin: miter | round | bevel | inherit stroke-linecap: butt | round | square | inherit fill-rule: nonzero | evenodd | inherit StrokeLinejoin is the first property that I ported. First I had to write a …