pub struct CacheKey(pub ContentHash);Expand description
A cache entry’s address. Real keys include node, style, and width hashes (manifest §32). For now the type is opaque.
§Examples
use mos_cache::CacheKey;
use mos_core::ContentHash;
let key = CacheKey(ContentHash(42));
assert_eq!(key.0, ContentHash(42));Tuple Fields§
§0: ContentHashTrait Implementations§
impl Copy for CacheKey
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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