#[repr(C)]pub struct CachedRenderingData { /* private fields */ }
Expand description
This structure must be present in items that are Rendered and contains information. Used by the backend.
Implementations§
Source§impl CachedRenderingData
impl CachedRenderingData
Sourcepub fn release<T>(&self, cache: &mut RenderingCache<T>) -> Option<T>
pub fn release<T>(&self, cache: &mut RenderingCache<T>) -> Option<T>
This function can be used to remove an entry from the rendering cache for a given item, if it exists, i.e. if any data was ever cached. This is typically called by the graphics backend’s implementation of the release_item_graphics_cache function.
Sourcepub fn get_entry<'a, T>(
&self,
cache: &'a mut RenderingCache<T>,
) -> Option<&'a mut CachedGraphicsData<T>>
pub fn get_entry<'a, T>( &self, cache: &'a mut RenderingCache<T>, ) -> Option<&'a mut CachedGraphicsData<T>>
Return the value if it is in the cache
Trait Implementations§
Source§impl Debug for CachedRenderingData
impl Debug for CachedRenderingData
Source§impl Default for CachedRenderingData
impl Default for CachedRenderingData
Source§fn default() -> CachedRenderingData
fn default() -> CachedRenderingData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CachedRenderingData
impl !RefUnwindSafe for CachedRenderingData
impl Send for CachedRenderingData
impl !Sync for CachedRenderingData
impl Unpin for CachedRenderingData
impl UnwindSafe for CachedRenderingData
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