pub struct DisplayItemCache {
    entries: Vec<CacheEntry>,
}Fields§
§entries: Vec<CacheEntry>Implementations§
Source§impl DisplayItemCache
 
impl DisplayItemCache
fn add_item(&mut self, key: ItemKey, item: CachedDisplayItem)
fn clear_entry(&mut self, key: ItemKey)
fn grow_if_needed(&mut self, capacity: usize)
pub fn get_items(&self, key: ItemKey) -> &[CachedDisplayItem]
pub fn new() -> Self
pub fn update(&mut self, display_list: &BuiltDisplayList)
Trait Implementations§
Source§impl Clone for DisplayItemCache
 
impl Clone for DisplayItemCache
Source§fn clone(&self) -> DisplayItemCache
 
fn clone(&self) -> DisplayItemCache
Returns a duplicate 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<'de> Deserialize<'de> for DisplayItemCache
 
impl<'de> Deserialize<'de> for DisplayItemCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MallocSizeOf for DisplayItemCache
 
impl MallocSizeOf for DisplayItemCache
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
 
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for DisplayItemCache
impl RefUnwindSafe for DisplayItemCache
impl Send for DisplayItemCache
impl Sync for DisplayItemCache
impl Unpin for DisplayItemCache
impl UnwindSafe for DisplayItemCache
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