pub struct RenderCacheKey(/* private fields */);Expand description
Deterministic 128-bit key for a source or rendered graph result.
Implementations§
Source§impl RenderCacheKey
impl RenderCacheKey
Sourcepub const fn source(value: u64) -> Self
pub const fn source(value: u64) -> Self
Creates a stable source key supplied by a decode or asset cache.
Sourcepub const fn from_value(value: u128) -> Self
pub const fn from_value(value: u128) -> Self
Creates a key from all 128 bits, as Self::value gives them back. A
key a caller derives for something other than a decoded source sets
high bits, so it never equals a Self::source key.
Trait Implementations§
Source§impl Clone for RenderCacheKey
impl Clone for RenderCacheKey
impl Copy for RenderCacheKey
Source§impl Debug for RenderCacheKey
impl Debug for RenderCacheKey
impl Eq for RenderCacheKey
Source§impl Hash for RenderCacheKey
impl Hash for RenderCacheKey
Source§impl PartialEq for RenderCacheKey
impl PartialEq for RenderCacheKey
impl StructuralPartialEq for RenderCacheKey
Auto Trait Implementations§
impl Freeze for RenderCacheKey
impl RefUnwindSafe for RenderCacheKey
impl Send for RenderCacheKey
impl Sync for RenderCacheKey
impl Unpin for RenderCacheKey
impl UnsafeUnpin for RenderCacheKey
impl UnwindSafe for RenderCacheKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.