Struct gix_pack::cache::lru::StaticLinkedList
source · pub struct StaticLinkedList<const SIZE: usize> { /* private fields */ }
Available on crate feature
pack-cache-lru-static
and (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.
Implementations§
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§
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