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 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 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§fn eq(&self, other: &TextureCacheHandle) -> bool
fn eq(&self, other: &TextureCacheHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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