pub struct InternalCounter {}Expand description
An internal counter for debugging purposes
Internally represented as an atomic isize if the counters feature is enabled,
or compiles to nothing otherwise.
Implementations§
Source§impl InternalCounter
impl InternalCounter
Sourcepub fn read(&self) -> isize
Available on non-crate feature counters only.
pub fn read(&self) -> isize
counters only.Get the counter’s value.
Always returns 0 if the counters feature is not enabled.
Trait Implementations§
Source§impl Clone for InternalCounter
impl Clone for InternalCounter
Source§impl Debug for InternalCounter
impl Debug for InternalCounter
Auto Trait Implementations§
impl Freeze for InternalCounter
impl RefUnwindSafe for InternalCounter
impl Send for InternalCounter
impl Sync for InternalCounter
impl Unpin for InternalCounter
impl UnwindSafe for InternalCounter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more