Struct ccache::hashmap::user::Entry [−][src]
current implementation of our hashmap entries
Has two std::ptr::NonNull
pointer that the caches can use to reorder
the elements
Trait Implementations
impl<K, V, Cid, Umeta: Meta<V>> Default for Entry<K, V, Cid, Umeta> where
K: Hash,
V: Val,
Cid: Cid,
[src]
impl<K, V, Cid, Umeta: Meta<V>> Default for Entry<K, V, Cid, Umeta> where
K: Hash,
V: Val,
Cid: Cid,
[src]impl<K, V, Cid, Umeta: Meta<V>> EntryT<K, V, Cid, Umeta> for Entry<K, V, Cid, Umeta> where
K: Hash,
V: Val,
Cid: Cid,
[src]
impl<K, V, Cid, Umeta: Meta<V>> EntryT<K, V, Cid, Umeta> for Entry<K, V, Cid, Umeta> where
K: Hash,
V: Val,
Cid: Cid,
[src]fn new_entry(
head: Option<NonNull<Self>>,
tail: Option<NonNull<Self>>,
key: K,
val: V,
cache_id: Cid,
user_data: Umeta
) -> Self
[src]
head: Option<NonNull<Self>>,
tail: Option<NonNull<Self>>,
key: K,
val: V,
cache_id: Cid,
user_data: Umeta
) -> Self
fn get_head_ptr(&self) -> Option<NonNull<Self>>
[src]
fn set_head_ptr(&mut self, head: Option<NonNull<Self>>)
[src]
fn get_tail_ptr(&self) -> Option<NonNull<Self>>
[src]
fn set_tail_ptr(&mut self, tail: Option<NonNull<Self>>)
[src]
fn get_key(&self) -> &K
[src]
fn get_val(&self) -> &V
[src]
fn get_val_mut(&mut self) -> &mut V
[src]
fn get_cache_id(&self) -> Cid
[src]
fn get_cache_id_mut(&mut self) -> &mut Cid
[src]
fn get_user(&self) -> &Umeta
[src]
fn get_user_mut(&mut self) -> &mut Umeta
[src]
fn get_val_user_mut(&mut self) -> (&mut V, &mut Umeta)
[src]
fn deconstruct(self) -> (K, V, Umeta)
[src]
fn user_on_insert(&mut self, old_entry: Option<&mut Self>)
[src]
fn user_on_get(&mut self)
[src]
Auto Trait Implementations
impl<K, V, Cid, Umeta> RefUnwindSafe for Entry<K, V, Cid, Umeta> where
Cid: RefUnwindSafe,
K: RefUnwindSafe,
Umeta: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, Cid, Umeta> RefUnwindSafe for Entry<K, V, Cid, Umeta> where
Cid: RefUnwindSafe,
K: RefUnwindSafe,
Umeta: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, Cid, Umeta> Unpin for Entry<K, V, Cid, Umeta> where
Cid: Unpin,
K: Unpin,
Umeta: Unpin,
V: Unpin,
impl<K, V, Cid, Umeta> Unpin for Entry<K, V, Cid, Umeta> where
Cid: Unpin,
K: Unpin,
Umeta: Unpin,
V: Unpin,
impl<K, V, Cid, Umeta> UnwindSafe for Entry<K, V, Cid, Umeta> where
Cid: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
Umeta: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe,
impl<K, V, Cid, Umeta> UnwindSafe for Entry<K, V, Cid, Umeta> where
Cid: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
Umeta: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe,