pub struct ManiaDifficultyAttributes {
pub stars: f64,
pub n_objects: u32,
pub n_hold_notes: u32,
pub max_combo: u32,
pub is_convert: bool,
}Expand description
The result of a difficulty calculation on an osu!mania map.
Fields§
§stars: f64The final star rating.
n_objects: u32The amount of hitobjects in the map.
n_hold_notes: u32The amount of hold notes in the map.
max_combo: u32The maximum achievable combo.
is_convert: boolWhether 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 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 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>
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