pub struct Counter {
pub name: String,
pub value: f64,
pub history: VecDeque<f64>,
pub max_history: usize,
}Expand description
Named counter accumulator (e.g. draw calls, triangle count).
Fields§
§name: String§value: f64§history: VecDeque<f64>§max_history: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
impl UnwindSafe for Counter
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