Project a canonical Intent node to a rendered string for the given target.
(node: &CanonicalNode, target: Target)
| 20 | |
| 21 | /// Project a canonical Intent node to a rendered string for the given target. |
| 22 | pub fn render(node: &CanonicalNode, target: Target) -> String { |
| 23 | match target { |
| 24 | Target::Cli => render_cli(node), |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | /// Project a canonical Memory node to a rendered string. Kept as a separate |
| 29 | /// entry (rather than a `Target::Memory` variant) so each `render*` stays typed |