pub fn from_str<D: DecodeBeatmap>(s: &str) -> Result<D, Error>Expand description
Parse a type that implements DecodeBeatmap by providing the content of
a .osu file as a string.
ยงExample
use rosu_map::section::difficulty::Difficulty;
let s: &str = "[Difficulty]
SliderMultiplier: 3
[Editor]
BeatDivisor: 4";
let difficulty: Difficulty = rosu_map::from_str(s)?;
assert_eq!(difficulty.slider_multiplier, 3.0);