Function osuparse::parse_beatmap
source · Expand description
Reads input from a string and attempts to output an osu beatmap.
Examples
use std::fs::File;
use std::io::prelude::*;
use osuparse::parse_beatmap;
let mut file = File::open("map.osu").unwrap();
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();
parse_beatmap(contents.as_str()).unwrap();