pub struct RecordSummary {
pub score: RecordDelta,
pub time_us: Option<RecordDelta>,
pub runs: u64,
}Expand description
Independent score/time comparisons for one accepted or previewed attempt.
Best score and fastest time may come from different attempts. No combined ranking is implied, and this summary is never serialized into a record book.
Fields§
§score: RecordDelta§time_us: Option<RecordDelta>None when the attempt supplies no successful finish time. This leaves
any existing fastest time unchanged and does not count as a tie or worse.
runs: u64Attempt count after accepting this attempt, including ties and worse runs.
Trait Implementations§
Source§impl Clone for RecordSummary
impl Clone for RecordSummary
Source§fn clone(&self) -> RecordSummary
fn clone(&self) -> RecordSummary
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 RecordSummary
impl Debug for RecordSummary
Source§impl PartialEq for RecordSummary
impl PartialEq for RecordSummary
impl Copy for RecordSummary
impl Eq for RecordSummary
impl StructuralPartialEq for RecordSummary
Auto Trait Implementations§
impl Freeze for RecordSummary
impl RefUnwindSafe for RecordSummary
impl Send for RecordSummary
impl Sync for RecordSummary
impl Unpin for RecordSummary
impl UnwindSafe for RecordSummary
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