pub struct GroupTracker {
pub begins: AtomicUsize,
pub ends: AtomicUsize,
}Expand description
Counter of begin/end events. Tests construct one, hand it to a
GroupGuard, and assert the begin/end pair is balanced.
Fields§
§begins: AtomicUsize§ends: AtomicUsizeTrait Implementations§
Source§impl Debug for GroupTracker
impl Debug for GroupTracker
Source§impl Default for GroupTracker
impl Default for GroupTracker
Source§fn default() -> GroupTracker
fn default() -> GroupTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GroupTracker
impl RefUnwindSafe for GroupTracker
impl Send for GroupTracker
impl Sync for GroupTracker
impl Unpin for GroupTracker
impl UnsafeUnpin for GroupTracker
impl UnwindSafe for GroupTracker
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