Struct rosu_pp::mania::ManiaDifficultyAttributes
source · pub struct ManiaDifficultyAttributes {
pub stars: f64,
pub hit_window: f64,
pub n_objects: u32,
pub max_combo: u32,
pub is_convert: bool,
}
Expand description
The result of a difficulty calculation on an osu!mania map.
Fields§
§stars: f64
The final star rating.
hit_window: f64
The perceived hit window for an n300 inclusive of rate-adjusting mods (DT/HT/etc).
n_objects: u32
The amount of hitobjects in the map.
max_combo: u32
The maximum achievable combo.
is_convert: bool
Whether the Beatmap
was a convert i.e. an osu!standard map.
Implementations§
source§impl ManiaDifficultyAttributes
impl ManiaDifficultyAttributes
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) -> ManiaPerformance<'a>
pub fn performance<'a>(self) -> ManiaPerformance<'a>
Returns a builder for performance calculation.
Trait Implementations§
source§impl Clone for ManiaDifficultyAttributes
impl Clone for ManiaDifficultyAttributes
source§fn clone(&self) -> ManiaDifficultyAttributes
fn clone(&self) -> ManiaDifficultyAttributes
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 ManiaDifficultyAttributes
impl Debug for ManiaDifficultyAttributes
source§impl Default for ManiaDifficultyAttributes
impl Default for ManiaDifficultyAttributes
source§fn default() -> ManiaDifficultyAttributes
fn default() -> ManiaDifficultyAttributes
Returns the “default value” for a type. Read more
source§impl From<ManiaPerformanceAttributes> for ManiaDifficultyAttributes
impl From<ManiaPerformanceAttributes> for ManiaDifficultyAttributes
source§fn from(attributes: ManiaPerformanceAttributes) -> Self
fn from(attributes: ManiaPerformanceAttributes) -> Self
Converts to this type from the input type.
source§impl<'map> IntoModePerformance<'map, Mania> for ManiaDifficultyAttributes
impl<'map> IntoModePerformance<'map, Mania> for ManiaDifficultyAttributes
fn into_performance(self) -> <Mania as IGameMode>::Performance<'map>
source§impl<'a> IntoPerformance<'a> for ManiaDifficultyAttributes
impl<'a> IntoPerformance<'a> for ManiaDifficultyAttributes
fn into_performance(self) -> Performance<'a>
source§impl PartialEq for ManiaDifficultyAttributes
impl PartialEq for ManiaDifficultyAttributes
source§fn eq(&self, other: &ManiaDifficultyAttributes) -> bool
fn eq(&self, other: &ManiaDifficultyAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManiaDifficultyAttributes
Auto Trait Implementations§
impl Freeze for ManiaDifficultyAttributes
impl RefUnwindSafe for ManiaDifficultyAttributes
impl Send for ManiaDifficultyAttributes
impl Sync for ManiaDifficultyAttributes
impl Unpin for ManiaDifficultyAttributes
impl UnwindSafe for ManiaDifficultyAttributes
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