pub struct ProbeCounters { /* private fields */ }Expand description
locate-call counters plus out-of-range probe count (when the
queried dep falls outside the tabulated range, locate clamps
silently — see item D in the accuracy writeup). Feature-gated to
avoid atomic traffic in normal builds; per-instance so concurrent
searches don’t share counters.
Implementations§
Source§impl ProbeCounters
impl ProbeCounters
pub fn snapshot(&self) -> ProbeStats
pub fn reset(&self)
Trait Implementations§
Source§impl Debug for ProbeCounters
impl Debug for ProbeCounters
Source§impl Default for ProbeCounters
impl Default for ProbeCounters
Source§fn default() -> ProbeCounters
fn default() -> ProbeCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ProbeCounters
impl RefUnwindSafe for ProbeCounters
impl Send for ProbeCounters
impl Sync for ProbeCounters
impl Unpin for ProbeCounters
impl UnsafeUnpin for ProbeCounters
impl UnwindSafe for ProbeCounters
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> 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