pub(crate) struct Entry<T> {
pub(crate) val: T,
pub(crate) prev: u16,
pub(crate) next: u16,
}
Expand description
An entry in an LRUCache
.
Fields§
§val: T
§prev: u16
Index of the previous entry. If this entry is the head, ignore this field.
next: u16
Index of the next entry. If this entry is the tail, ignore this field.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Entry<T>where
T: Freeze,
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>where
T: Send,
impl<T> Sync for Entry<T>where
T: Sync,
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnwindSafe for Entry<T>where
T: 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