Struct rosu_pp::catch::CatchDifficultyAttributes
source · 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: f64
The final star rating
ar: f64
The approach rate.
n_fruits: u32
The amount of fruits.
n_droplets: u32
The amount of droplets.
n_tiny_droplets: u32
The amount of tiny droplets.
is_convert: bool
Whether 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 copy 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>
source§impl PartialEq for CatchDifficultyAttributes
impl PartialEq for CatchDifficultyAttributes
source§fn eq(&self, other: &CatchDifficultyAttributes) -> bool
fn eq(&self, other: &CatchDifficultyAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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