Struct rosu_v2::model::score::ScoreStatistics
source · pub struct ScoreStatistics {
pub count_geki: u32,
pub count_300: u32,
pub count_katu: u32,
pub count_100: u32,
pub count_50: u32,
pub count_miss: u32,
}
Fields§
§count_geki: u32
§count_300: u32
§count_katu: u32
§count_100: u32
§count_50: u32
§count_miss: u32
Implementations§
source§impl ScoreStatistics
impl ScoreStatistics
sourcepub fn total_hits(&self, mode: GameMode) -> u32
pub fn total_hits(&self, mode: GameMode) -> u32
Count all hitobjects of the score i.e. for GameMode::Osu
the amount 300s, 100s, 50s, and misses.
Note: Includes tiny droplet (misses) for GameMode::Catch
Trait Implementations§
source§impl Clone for ScoreStatistics
impl Clone for ScoreStatistics
source§fn clone(&self) -> ScoreStatistics
fn clone(&self) -> ScoreStatistics
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 ScoreStatistics
impl Debug for ScoreStatistics
source§impl<'de> Deserialize<'de> for ScoreStatistics
impl<'de> Deserialize<'de> for ScoreStatistics
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ScoreStatistics> for ScoreStatistics
impl PartialEq<ScoreStatistics> for ScoreStatistics
source§fn eq(&self, other: &ScoreStatistics) -> bool
fn eq(&self, other: &ScoreStatistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScoreStatistics
impl StructuralEq for ScoreStatistics
impl StructuralPartialEq for ScoreStatistics
Auto Trait Implementations§
impl RefUnwindSafe for ScoreStatistics
impl Send for ScoreStatistics
impl Sync for ScoreStatistics
impl Unpin for ScoreStatistics
impl UnwindSafe for ScoreStatistics
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.