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 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<'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.