pub(crate) struct DenseExpiryPool {
values: Vec<Vec<SimTime>>,
dirty: DirtyPoolKeys,
}Fields§
§values: Vec<Vec<SimTime>>§dirty: DirtyPoolKeysImplementations§
Source§impl DenseExpiryPool
impl DenseExpiryPool
pub(crate) fn resize(&mut self, len: usize)
pub(crate) fn push_capped( &mut self, key: usize, expiry: SimTime, capacity: usize, ) -> (usize, bool)
pub(crate) fn expire_due( &mut self, key: usize, now: SimTime, ) -> Option<(usize, usize)>
pub(crate) fn remove_oldest(&mut self, key: usize) -> bool
pub(crate) fn is_empty(&self, key: usize) -> bool
pub(crate) fn remove(&mut self, key: usize)
pub(crate) fn clear(&mut self)
Trait Implementations§
Source§impl Debug for DenseExpiryPool
impl Debug for DenseExpiryPool
Source§impl Default for DenseExpiryPool
impl Default for DenseExpiryPool
Source§fn default() -> DenseExpiryPool
fn default() -> DenseExpiryPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DenseExpiryPool
impl RefUnwindSafe for DenseExpiryPool
impl Send for DenseExpiryPool
impl Sync for DenseExpiryPool
impl Unpin for DenseExpiryPool
impl UnsafeUnpin for DenseExpiryPool
impl UnwindSafe for DenseExpiryPool
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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