Struct rosu_pp::mania::ManiaPerformanceAttributes
source · pub struct ManiaPerformanceAttributes {
pub difficulty: ManiaDifficultyAttributes,
pub pp: f64,
pub pp_difficulty: f64,
}
Expand description
The result of a performance calculation on an osu!mania map.
Fields§
§difficulty: ManiaDifficultyAttributes
The difficulty attributes that were used for the performance calculation.
pp: f64
The final performance points.
pp_difficulty: f64
The difficulty portion of the final pp.
Implementations§
source§impl ManiaPerformanceAttributes
impl ManiaPerformanceAttributes
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 ManiaPerformanceAttributes
impl Clone for ManiaPerformanceAttributes
source§fn clone(&self) -> ManiaPerformanceAttributes
fn clone(&self) -> ManiaPerformanceAttributes
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 ManiaPerformanceAttributes
impl Debug for ManiaPerformanceAttributes
source§impl Default for ManiaPerformanceAttributes
impl Default for ManiaPerformanceAttributes
source§fn default() -> ManiaPerformanceAttributes
fn default() -> ManiaPerformanceAttributes
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 ManiaPerformanceAttributes
impl<'map> IntoModePerformance<'map, Mania> for ManiaPerformanceAttributes
fn into_performance(self) -> <Mania as IGameMode>::Performance<'map>
source§impl<'a> IntoPerformance<'a> for ManiaPerformanceAttributes
impl<'a> IntoPerformance<'a> for ManiaPerformanceAttributes
fn into_performance(self) -> Performance<'a>
source§impl PartialEq for ManiaPerformanceAttributes
impl PartialEq for ManiaPerformanceAttributes
source§fn eq(&self, other: &ManiaPerformanceAttributes) -> bool
fn eq(&self, other: &ManiaPerformanceAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManiaPerformanceAttributes
Auto Trait Implementations§
impl Freeze for ManiaPerformanceAttributes
impl RefUnwindSafe for ManiaPerformanceAttributes
impl Send for ManiaPerformanceAttributes
impl Sync for ManiaPerformanceAttributes
impl Unpin for ManiaPerformanceAttributes
impl UnwindSafe for ManiaPerformanceAttributes
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