Expand description
Types deriving the appropriate serde traits to be used with
quick-xml for parsing
OpenLyrics XML files, and some helper functions and
methods for common tasks.
types::Song is the top-level type for parsing an OpenLyrics file, e.g.:
use openlyrics::types::Song;
use quick_xml::de::from_reader;
use std::{fs::File, io::BufReader};
let song = from_reader::<_, Song>(BufReader::new(File::open("song.xml")?))?;
println!("Title: {}", song.properties.titles.titles[0].title);Modules§
- types
- Types for OpenLyrics XML elements.
Functions§
- simplify_
contents - Converts the contents of a verse to a vector of lines, ignoring chords, tags and comments.