Struct webrender::internal_types::CacheTextureId
source · pub struct CacheTextureId(pub u32);
Expand description
An ID for a texture that is owned by the texture_cache
module.
This can include atlases or standalone textures allocated via the texture cache (e.g. if an image is too large to be added to an atlas). The texture cache manages the allocation and freeing of these IDs, and the rendering thread maintains a map from cache texture ID to native texture.
We never reuse IDs, so we use a u64 here to be safe.
Tuple Fields§
§0: u32
Implementations§
source§impl CacheTextureId
impl CacheTextureId
pub const INVALID: CacheTextureId = _
Trait Implementations§
source§impl Clone for CacheTextureId
impl Clone for CacheTextureId
source§fn clone(&self) -> CacheTextureId
fn clone(&self) -> CacheTextureId
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 CacheTextureId
impl Debug for CacheTextureId
source§impl Hash for CacheTextureId
impl Hash for CacheTextureId
source§impl PartialEq for CacheTextureId
impl PartialEq for CacheTextureId
source§fn eq(&self, other: &CacheTextureId) -> bool
fn eq(&self, other: &CacheTextureId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CacheTextureId
impl Serialize for CacheTextureId
impl Copy for CacheTextureId
impl Eq for CacheTextureId
impl StructuralPartialEq for CacheTextureId
Auto Trait Implementations§
impl Freeze for CacheTextureId
impl RefUnwindSafe for CacheTextureId
impl Send for CacheTextureId
impl Sync for CacheTextureId
impl Unpin for CacheTextureId
impl UnwindSafe for CacheTextureId
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