Catch

Struct Catch 

Source
pub struct Catch;
Expand description

Marker type for GameMode::Catch.

Implementations§

Source§

impl Catch

Source

pub fn convert(map: &mut Beatmap)

Trait Implementations§

Source§

impl IGameMode for Catch

Source§

type DifficultyAttributes = CatchDifficultyAttributes

The resulting type of a difficulty calculation.
Source§

type Strains = CatchStrains

The resulting type of a strain calculation.
Source§

type Performance<'map> = CatchPerformance<'map>

The type of a performance calculator.
Source§

type GradualDifficulty = CatchGradualDifficulty

The type of a gradual difficulty calculator.
Source§

type GradualPerformance = CatchGradualPerformance

The type of a gradual performance calculator.
Source§

fn difficulty( difficulty: &Difficulty, map: &Beatmap, ) -> Result<Self::DifficultyAttributes, ConvertError>

Perform a difficulty calculation for a Beatmap and process the final skill values.
Source§

fn strains( difficulty: &Difficulty, map: &Beatmap, ) -> Result<Self::Strains, ConvertError>

Perform a difficulty calculation for a Beatmap without processing the final skill values.
Source§

fn performance(map: &Beatmap) -> Self::Performance<'_>

Create a performance calculator for a Beatmap.
Source§

fn gradual_difficulty( difficulty: Difficulty, map: &Beatmap, ) -> Result<Self::GradualDifficulty, ConvertError>

Create a gradual difficulty calculator for a Beatmap.
Source§

fn gradual_performance( difficulty: Difficulty, map: &Beatmap, ) -> Result<Self::GradualPerformance, ConvertError>

Create a gradual performance calculator for a Beatmap.
Source§

impl<'a> IntoModePerformance<'a, Catch> for Beatmap

Source§

impl<'map> IntoModePerformance<'map, Catch> for &'map Beatmap

Source§

impl<'map> IntoModePerformance<'map, Catch> for CatchDifficultyAttributes

Source§

impl<'map> IntoModePerformance<'map, Catch> for CatchPerformanceAttributes

Auto Trait Implementations§

§

impl Freeze for Catch

§

impl RefUnwindSafe for Catch

§

impl Send for Catch

§

impl Sync for Catch

§

impl Unpin for Catch

§

impl UnwindSafe for Catch

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.