Function osuparse::parse_beatmap

source ·
pub fn parse_beatmap(input: &str) -> Result<Beatmap, Error>
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();