pub struct StdCounter { /* private fields */ }Expand description
Naive implementation of a Counter.
Implementations§
Source§impl StdCounter
impl StdCounter
Sourcepub fn new() -> Arc<StdCounter>
pub fn new() -> Arc<StdCounter>
Create a new StdCounter.
Trait Implementations§
Source§impl Counter for StdCounter
impl Counter for StdCounter
Source§impl Debug for StdCounter
impl Debug for StdCounter
Source§impl Default for StdCounter
impl Default for StdCounter
Source§fn default() -> StdCounter
fn default() -> StdCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for StdCounter
impl RefUnwindSafe for StdCounter
impl Send for StdCounter
impl Sync for StdCounter
impl Unpin for StdCounter
impl UnwindSafe for StdCounter
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