pub struct RectEntry<K: Hash + Eq + Clone, V: Clone, D> {
pub width: u32,
pub height: u32,
pub key: K,
pub value: V,
pub entry_data: D,
}Expand description
The entry of a rect to be cached.
Fields§
§width: u32The width of the rect to be cached.
height: u32The height of the rect to be cached.
key: KThe key that will be mapped to the cached rect.
value: VA value which will be associated with the cached rect.
entry_data: DA value it will be associated with this rect entry. This is not stored in the cache, but it is used to do operations with this entry right after adding it.
Trait Implementations§
Source§impl<K: PartialEq + Hash + Eq + Clone, V: PartialEq + Clone, D: PartialEq> PartialEq for RectEntry<K, V, D>
impl<K: PartialEq + Hash + Eq + Clone, V: PartialEq + Clone, D: PartialEq> PartialEq for RectEntry<K, V, D>
impl<K: Eq + Hash + Eq + Clone, V: Eq + Clone, D: Eq> Eq for RectEntry<K, V, D>
impl<K: Hash + Eq + Clone, V: Clone, D> StructuralPartialEq for RectEntry<K, V, D>
Auto Trait Implementations§
impl<K, V, D> Freeze for RectEntry<K, V, D>
impl<K, V, D> RefUnwindSafe for RectEntry<K, V, D>
impl<K, V, D> Send for RectEntry<K, V, D>
impl<K, V, D> Sync for RectEntry<K, V, D>
impl<K, V, D> Unpin for RectEntry<K, V, D>
impl<K, V, D> UnwindSafe for RectEntry<K, V, D>
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