Struct webrender_api::DisplayItemCache
source · 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.
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
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
)