pub struct OnTypingStatisticsTarget { /* private fields */ }Implementations§
Source§impl OnTypingStatisticsTarget
impl OnTypingStatisticsTarget
Sourcepub fn finished_count(&self) -> usize
pub fn finished_count(&self) -> usize
Get count of finished targets.
Sourcepub fn whole_count(&self) -> usize
pub fn whole_count(&self) -> usize
Get count of whole targets.
Sourcepub fn completely_correct_count(&self) -> usize
pub fn completely_correct_count(&self) -> usize
Get count of targets that are finished without miss.
Sourcepub fn wrong_count(&self) -> usize
pub fn wrong_count(&self) -> usize
Get count of wrong typed targets. Multiple miss types in same targets are counted separately.
Sourcepub fn lap_end_time(&self) -> Option<&Vec<Duration>>
pub fn lap_end_time(&self) -> Option<&Vec<Duration>>
Get lap end time of target.
This returns None when target is not a target for take laps.
Sourcepub fn lap_end_positions(&self) -> &Vec<usize>
pub fn lap_end_positions(&self) -> &Vec<usize>
Get lap end positions of target. Each positions is converted from requested target.
Trait Implementations§
Source§impl Clone for OnTypingStatisticsTarget
impl Clone for OnTypingStatisticsTarget
Source§fn clone(&self) -> OnTypingStatisticsTarget
fn clone(&self) -> OnTypingStatisticsTarget
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 OnTypingStatisticsTarget
impl Debug for OnTypingStatisticsTarget
Source§impl<'de> Deserialize<'de> for OnTypingStatisticsTarget
impl<'de> Deserialize<'de> for OnTypingStatisticsTarget
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 Hash for OnTypingStatisticsTarget
impl Hash for OnTypingStatisticsTarget
Source§impl PartialEq for OnTypingStatisticsTarget
impl PartialEq for OnTypingStatisticsTarget
Source§impl Serialize for OnTypingStatisticsTarget
impl Serialize for OnTypingStatisticsTarget
impl Eq for OnTypingStatisticsTarget
impl StructuralPartialEq for OnTypingStatisticsTarget
Auto Trait Implementations§
impl Freeze for OnTypingStatisticsTarget
impl RefUnwindSafe for OnTypingStatisticsTarget
impl Send for OnTypingStatisticsTarget
impl Sync for OnTypingStatisticsTarget
impl Unpin for OnTypingStatisticsTarget
impl UnwindSafe for OnTypingStatisticsTarget
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