Skip to main content

try_render

Function try_render 

Source
pub fn try_render(input: &str) -> Result<String, ParseError>
Expand description

Parse a ChordPro source string and render it to plain text.

Returns Ok(text) on success, or the chordsketch_chordpro::ParseError if the input cannot be parsed.

For pre-parsed input, use render_song directly.