pub struct DiscoverScratch<T, RIn> { /* private fields */ }Expand description
Reusable per-key scratch for discover_times: held once and threaded through every key,
so replays and time buffers are cleared and refilled rather than reallocated per key.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, RIn> Freeze for DiscoverScratch<T, RIn>
impl<T, RIn> RefUnwindSafe for DiscoverScratch<T, RIn>where
T: RefUnwindSafe,
RIn: RefUnwindSafe,
impl<T, RIn> Send for DiscoverScratch<T, RIn>
impl<T, RIn> Sync for DiscoverScratch<T, RIn>
impl<T, RIn> Unpin for DiscoverScratch<T, RIn>
impl<T, RIn> UnsafeUnpin for DiscoverScratch<T, RIn>
impl<T, RIn> UnwindSafe for DiscoverScratch<T, RIn>where
T: UnwindSafe,
RIn: UnwindSafe,
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 moreSource§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.