pub struct StaticLinkedList<const SIZE: usize> { /* private fields */ }
Available on crate features
pack-cache-lru-dynamic
or pack-cache-lru-static
only.Expand description
A cache using a least-recently-used implementation capable of storing the SIZE
most recent objects.
The cache must be small as the search is ‘naive’ and the underlying data structure is a linked list.
Values of 64 seem to improve performance.
Trait Implementations
Auto Trait Implementations
impl<const SIZE: usize> RefUnwindSafe for StaticLinkedList<SIZE>
impl<const SIZE: usize> Send for StaticLinkedList<SIZE>
impl<const SIZE: usize> Sync for StaticLinkedList<SIZE>
impl<const SIZE: usize> Unpin for StaticLinkedList<SIZE>
impl<const SIZE: usize> UnwindSafe for StaticLinkedList<SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more