Struct egui::util::fixed_cache::FixedCache
source · pub(crate) struct FixedCache<K, V>([Option<(K, V)>; 1024]);
Expand description
Very stupid/simple key-value cache. TODO(emilk): improve
Tuple Fields§
§0: [Option<(K, V)>; 1024]
Implementations§
Trait Implementations§
source§impl<K: Clone, V: Clone> Clone for FixedCache<K, V>
impl<K: Clone, V: Clone> Clone for FixedCache<K, V>
source§fn clone(&self) -> FixedCache<K, V>
fn clone(&self) -> FixedCache<K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<K, V> Debug for FixedCache<K, V>
impl<K, V> Debug for FixedCache<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for FixedCache<K, V>
impl<K, V> RefUnwindSafe for FixedCache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for FixedCache<K, V>
impl<K, V> Sync for FixedCache<K, V>
impl<K, V> Unpin for FixedCache<K, V>
impl<K, V> UnwindSafe for FixedCache<K, V>where
K: UnwindSafe,
V: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)