pub enum TextureCacheHandle {
    Empty,
    Auto(WeakFreeListHandle<AutoCacheEntryMarker>),
    Manual(WeakFreeListHandle<ManualCacheEntryMarker>),
}Expand description
A texture cache handle is a weak reference to a cache entry.
If the handle has not been inserted into the cache yet, or if the entry was previously inserted and then evicted, lookup of the handle will fail, and the cache handle needs to re-upload this item to the texture cache (see request() below).
Variants§
Empty
A fresh handle.
Auto(WeakFreeListHandle<AutoCacheEntryMarker>)
A handle for an entry with automatic eviction.
Manual(WeakFreeListHandle<ManualCacheEntryMarker>)
A handle for an entry with manual eviction.
Implementations§
Trait Implementations§
Source§impl Clone for TextureCacheHandle
 
impl Clone for TextureCacheHandle
Source§fn clone(&self) -> TextureCacheHandle
 
fn clone(&self) -> TextureCacheHandle
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 Debug for TextureCacheHandle
 
impl Debug for TextureCacheHandle
Source§impl MallocSizeOf for TextureCacheHandle
 
impl MallocSizeOf for TextureCacheHandle
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.
Source§impl PartialEq for TextureCacheHandle
 
impl PartialEq for TextureCacheHandle
Source§impl Serialize for TextureCacheHandle
 
impl Serialize for TextureCacheHandle
impl StructuralPartialEq for TextureCacheHandle
Auto Trait Implementations§
impl Freeze for TextureCacheHandle
impl RefUnwindSafe for TextureCacheHandle
impl Send for TextureCacheHandle
impl Sync for TextureCacheHandle
impl Unpin for TextureCacheHandle
impl UnwindSafe for TextureCacheHandle
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§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more