pub struct CatchDifficultyAttributes {
pub stars: f64,
pub ar: f64,
pub n_fruits: u32,
pub n_droplets: u32,
pub n_tiny_droplets: u32,
pub is_convert: bool,
}Expand description
The result of a difficulty calculation on an osu!catch map.
Fields§
§stars: f64The final star rating
ar: f64The approach rate.
n_fruits: u32The amount of fruits.
n_droplets: u32The amount of droplets.
n_tiny_droplets: u32The amount of tiny droplets.
is_convert: boolWhether the Beatmap was a convert i.e. an osu!standard map.
Implementations§
Source§impl CatchDifficultyAttributes
impl CatchDifficultyAttributes
Sourcepub const fn is_convert(&self) -> bool
pub const fn is_convert(&self) -> bool
Whether the Beatmap was a convert i.e. an osu!standard map.
Sourcepub fn performance<'a>(self) -> CatchPerformance<'a>
pub fn performance<'a>(self) -> CatchPerformance<'a>
Returns a builder for performance calculation.
Trait Implementations§
Source§impl Clone for CatchDifficultyAttributes
impl Clone for CatchDifficultyAttributes
Source§fn clone(&self) -> CatchDifficultyAttributes
fn clone(&self) -> CatchDifficultyAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatchDifficultyAttributes
impl Debug for CatchDifficultyAttributes
Source§impl Default for CatchDifficultyAttributes
impl Default for CatchDifficultyAttributes
Source§fn default() -> CatchDifficultyAttributes
fn default() -> CatchDifficultyAttributes
Returns the “default value” for a type. Read more
Source§impl From<CatchPerformanceAttributes> for CatchDifficultyAttributes
impl From<CatchPerformanceAttributes> for CatchDifficultyAttributes
Source§fn from(attributes: CatchPerformanceAttributes) -> Self
fn from(attributes: CatchPerformanceAttributes) -> Self
Converts to this type from the input type.
Source§impl<'map> IntoModePerformance<'map, Catch> for CatchDifficultyAttributes
impl<'map> IntoModePerformance<'map, Catch> for CatchDifficultyAttributes
fn into_performance(self) -> <Catch as IGameMode>::Performance<'map>
Source§impl<'a> IntoPerformance<'a> for CatchDifficultyAttributes
impl<'a> IntoPerformance<'a> for CatchDifficultyAttributes
fn into_performance(self) -> Performance<'a>
impl StructuralPartialEq for CatchDifficultyAttributes
Auto Trait Implementations§
impl Freeze for CatchDifficultyAttributes
impl RefUnwindSafe for CatchDifficultyAttributes
impl Send for CatchDifficultyAttributes
impl Sync for CatchDifficultyAttributes
impl Unpin for CatchDifficultyAttributes
impl UnwindSafe for CatchDifficultyAttributes
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