format_path
Writes path commands back as SVG path data: letters glued to their first number, single
spaces elsewhere, numbers rounded to precision decimals with the trailing zeros dropped
(-0 is written 0).
Import
Section titled “Import”Cargo feature geometry (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
commands | &[PathCommand] | The commands, as parse_path returns them. |
precision | usize | Decimals kept per number; 6 is a good default. |
Returns
Section titled “Returns”String — The path data.
