pub struct CacheMeta {
pub toolchain: String,
pub entries: Vec<CacheEntry>,
}Expand description
A cache segment’s metadata block: the index of everything its payload section holds.
Fields§
§toolchain: StringNames the host shader toolchain that produced the segment’s entries, empty when nothing stamped it. An entry is a function of its source rather than of what compiled it, so an external compiler upgrade moves no key: a segment naming another toolchain is discarded instead.
entries: Vec<CacheEntry>The segment’s entries, in payload order.
Implementations§
Source§impl CacheMeta
impl CacheMeta
Sourcepub fn find(&self, kind: CacheEntryKind, key: &str) -> Option<&CacheEntry>
pub fn find(&self, kind: CacheEntryKind, key: &str) -> Option<&CacheEntry>
The entry kind stored under key, if the segment holds one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CacheMeta
impl<'de> Deserialize<'de> for CacheMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheMeta
impl StructuralPartialEq for CacheMeta
Auto Trait Implementations§
impl Freeze for CacheMeta
impl RefUnwindSafe for CacheMeta
impl Send for CacheMeta
impl Sync for CacheMeta
impl Unpin for CacheMeta
impl UnsafeUnpin for CacheMeta
impl UnwindSafe for CacheMeta
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.