pub struct Stats {
pub fps: usize,
pub last_frame_count: usize,
pub last_frame_check: Instant,
}Fields§
§fps: usizeThe number of frames shown in the last second
last_frame_count: usizeUsed to calculate fps
last_frame_check: InstantUsed to calculate fps
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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