added various From<_> implementations

This commit is contained in:
MaxOhn
2021-11-13 20:46:23 +01:00
parent 1a7127be7f
commit 0a0dd025f7
6 changed files with 103 additions and 6 deletions
+6
View File
@@ -587,6 +587,12 @@ impl OsuPerformanceAttributes {
}
}
impl From<OsuPerformanceAttributes> for OsuDifficultyAttributes {
fn from(attributes: OsuPerformanceAttributes) -> Self {
attributes.attributes
}
}
#[inline]
fn difficulty_range_od(od: f64) -> f64 {
super::difficulty_range(od, 20.0, 50.0, 80.0)