Enum rosu_pp::any::PerformanceAttributes
source · pub enum PerformanceAttributes {
Osu(OsuPerformanceAttributes),
Taiko(TaikoPerformanceAttributes),
Catch(CatchPerformanceAttributes),
Mania(ManiaPerformanceAttributes),
}
Expand description
The result of a performance calculation based on the mode.
Variants§
Osu(OsuPerformanceAttributes)
osu!standard performance calculation result.
Taiko(TaikoPerformanceAttributes)
osu!taiko performance calculation result.
Catch(CatchPerformanceAttributes)
osu!catch performance calculation result.
Mania(ManiaPerformanceAttributes)
osu!mania performance calculation result.
Implementations§
source§impl PerformanceAttributes
impl PerformanceAttributes
sourcepub fn difficulty_attributes(&self) -> DifficultyAttributes
pub fn difficulty_attributes(&self) -> DifficultyAttributes
Difficulty attributes that were used for the performance calculation.
sourcepub fn performance<'a>(self) -> Performance<'a>
pub fn performance<'a>(self) -> Performance<'a>
Returns a builder for performance calculation.
Trait Implementations§
source§impl Clone for PerformanceAttributes
impl Clone for PerformanceAttributes
source§fn clone(&self) -> PerformanceAttributes
fn clone(&self) -> PerformanceAttributes
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 PerformanceAttributes
impl Debug for PerformanceAttributes
source§impl From<PerformanceAttributes> for DifficultyAttributes
impl From<PerformanceAttributes> for DifficultyAttributes
source§fn from(attrs: PerformanceAttributes) -> Self
fn from(attrs: PerformanceAttributes) -> Self
Converts to this type from the input type.
source§impl<'a> IntoPerformance<'a> for PerformanceAttributes
impl<'a> IntoPerformance<'a> for PerformanceAttributes
fn into_performance(self) -> Performance<'a>
source§impl PartialEq for PerformanceAttributes
impl PartialEq for PerformanceAttributes
source§fn eq(&self, other: &PerformanceAttributes) -> bool
fn eq(&self, other: &PerformanceAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PerformanceAttributes
Auto Trait Implementations§
impl Freeze for PerformanceAttributes
impl RefUnwindSafe for PerformanceAttributes
impl Send for PerformanceAttributes
impl Sync for PerformanceAttributes
impl Unpin for PerformanceAttributes
impl UnwindSafe for PerformanceAttributes
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