pub struct Converted<'a, M> { /* private fields */ }
Expand description
Implementations§
source§impl<M: IGameMode> Converted<'_, M>
impl<M: IGameMode> Converted<'_, M>
sourcepub fn try_from_owned(map: Beatmap) -> Result<Self, Beatmap>
pub fn try_from_owned(map: Beatmap) -> Result<Self, Beatmap>
sourcepub fn unchecked_from_owned(map: Beatmap) -> Self
pub fn unchecked_from_owned(map: Beatmap) -> Self
sourcepub fn gradual_difficulty(&self, difficulty: Difficulty) -> M::GradualDifficulty
pub fn gradual_difficulty(&self, difficulty: Difficulty) -> M::GradualDifficulty
Create a gradual difficulty calculator for the map.
sourcepub fn gradual_performance(
&self,
difficulty: Difficulty
) -> M::GradualPerformance
pub fn gradual_performance( &self, difficulty: Difficulty ) -> M::GradualPerformance
Create a gradual performance calculator for the map.
source§impl<'a, M: IGameMode> Converted<'a, M>
impl<'a, M: IGameMode> Converted<'a, M>
sourcepub fn performance(self) -> M::Performance<'a>
pub fn performance(self) -> M::Performance<'a>
Create a performance calculator for the map.
sourcepub fn try_from_ref(map: &'a Beatmap) -> Option<Self>
pub fn try_from_ref(map: &'a Beatmap) -> Option<Self>
Attempt to convert a &Beatmap
to the specified mode.
If the conversion is incompatible, None
is returned.
sourcepub fn unchecked_from_ref(map: &'a Beatmap) -> Self
pub fn unchecked_from_ref(map: &'a Beatmap) -> Self
sourcepub fn try_from_mut(map: &'a mut Beatmap) -> Option<Self>
pub fn try_from_mut(map: &'a mut Beatmap) -> Option<Self>
Attempt to convert a &mut Beatmap
to the specified mode.
If the conversion is incompatible, None
is returned.
sourcepub fn unchecked_from_mut(map: &'a mut Beatmap) -> Self
pub fn unchecked_from_mut(map: &'a mut Beatmap) -> Self
sourcepub fn try_convert<N: IGameMode>(self) -> Result<Converted<'a, N>, Self>
pub fn try_convert<N: IGameMode>(self) -> Result<Converted<'a, N>, Self>
Methods from Deref<Target = Beatmap>§
sourcepub fn attributes(&self) -> BeatmapAttributesBuilder
pub fn attributes(&self) -> BeatmapAttributesBuilder
Returns a BeatmapAttributesBuilder
to calculate modified beatmap
attributes.
sourcepub fn performance(&self) -> Performance<'_>
pub fn performance(&self) -> Performance<'_>
Create a performance calculator for this Beatmap
.
sourcepub fn gradual_difficulty(&self, difficulty: Difficulty) -> GradualDifficulty ⓘ
pub fn gradual_difficulty(&self, difficulty: Difficulty) -> GradualDifficulty ⓘ
Create a gradual difficulty calculator for this Beatmap
.
sourcepub fn gradual_performance(&self, difficulty: Difficulty) -> GradualPerformance
pub fn gradual_performance(&self, difficulty: Difficulty) -> GradualPerformance
Create a gradual performance calculator for this Beatmap
.
sourcepub fn total_break_time(&self) -> f64
pub fn total_break_time(&self) -> f64
Sum up the duration of all breaks (in milliseconds).
Trait Implementations§
source§impl<M> From<&Converted<'_, M>> for BeatmapAttributesBuilder
impl<M> From<&Converted<'_, M>> for BeatmapAttributesBuilder
source§impl<'map> IntoModePerformance<'map, Catch> for &'map Converted<'_, Catch>
impl<'map> IntoModePerformance<'map, Catch> for &'map Converted<'_, Catch>
fn into_performance(self) -> <Catch as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Catch> for Converted<'map, Catch>
impl<'map> IntoModePerformance<'map, Catch> for Converted<'map, Catch>
fn into_performance(self) -> <Catch as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Mania> for &'map Converted<'_, Mania>
impl<'map> IntoModePerformance<'map, Mania> for &'map Converted<'_, Mania>
fn into_performance(self) -> <Mania as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Mania> for Converted<'map, Mania>
impl<'map> IntoModePerformance<'map, Mania> for Converted<'map, Mania>
fn into_performance(self) -> <Mania as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Osu> for &'map Converted<'_, Osu>
impl<'map> IntoModePerformance<'map, Osu> for &'map Converted<'_, Osu>
fn into_performance(self) -> <Osu as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Osu> for Converted<'map, Osu>
impl<'map> IntoModePerformance<'map, Osu> for Converted<'map, Osu>
fn into_performance(self) -> <Osu as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Taiko> for &'map Converted<'_, Taiko>
impl<'map> IntoModePerformance<'map, Taiko> for &'map Converted<'_, Taiko>
fn into_performance(self) -> <Taiko as IGameMode>::Performance<'map>
source§impl<'map> IntoModePerformance<'map, Taiko> for Converted<'map, Taiko>
impl<'map> IntoModePerformance<'map, Taiko> for Converted<'map, Taiko>
fn into_performance(self) -> <Taiko as IGameMode>::Performance<'map>
source§impl<'map> IntoPerformance<'map> for &'map Converted<'_, Catch>
impl<'map> IntoPerformance<'map> for &'map Converted<'_, Catch>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for &'map Converted<'_, Mania>
impl<'map> IntoPerformance<'map> for &'map Converted<'_, Mania>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for &'map Converted<'_, Osu>
impl<'map> IntoPerformance<'map> for &'map Converted<'_, Osu>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for &'map Converted<'_, Taiko>
impl<'map> IntoPerformance<'map> for &'map Converted<'_, Taiko>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for Converted<'map, Catch>
impl<'map> IntoPerformance<'map> for Converted<'map, Catch>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for Converted<'map, Mania>
impl<'map> IntoPerformance<'map> for Converted<'map, Mania>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for Converted<'map, Osu>
impl<'map> IntoPerformance<'map> for Converted<'map, Osu>
fn into_performance(self) -> Performance<'map>
source§impl<'map> IntoPerformance<'map> for Converted<'map, Taiko>
impl<'map> IntoPerformance<'map> for Converted<'map, Taiko>
fn into_performance(self) -> Performance<'map>
Auto Trait Implementations§
impl<'a, M> Freeze for Converted<'a, M>
impl<'a, M> RefUnwindSafe for Converted<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for Converted<'a, M>where
M: Send,
impl<'a, M> Sync for Converted<'a, M>where
M: Sync,
impl<'a, M> Unpin for Converted<'a, M>where
M: Unpin,
impl<'a, M> UnwindSafe for Converted<'a, M>where
M: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more