pub struct ExtensionCacheKey {
pub family_id: &'static str,
pub cache_name: &'static str,
pub discriminator: u64,
}Expand description
A stable key for one extension-owned runtime cache entry.
family_id names the extension family, cache_name names the specific
cache within that family, and discriminator is chosen by the extension
executor from shape, dtype, device, or other runtime planning inputs.
Fields§
§family_id: &'static strExtension family that owns this cache entry.
cache_name: &'static strCache namespace within the extension family.
discriminator: u64Extension-defined stable discriminator for this runtime entry.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionCacheKey
impl Clone for ExtensionCacheKey
Source§fn clone(&self) -> ExtensionCacheKey
fn clone(&self) -> ExtensionCacheKey
Returns a duplicate 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 ExtensionCacheKey
impl Debug for ExtensionCacheKey
Source§impl Hash for ExtensionCacheKey
impl Hash for ExtensionCacheKey
Source§impl PartialEq for ExtensionCacheKey
impl PartialEq for ExtensionCacheKey
impl Copy for ExtensionCacheKey
impl Eq for ExtensionCacheKey
impl StructuralPartialEq for ExtensionCacheKey
Auto Trait Implementations§
impl Freeze for ExtensionCacheKey
impl RefUnwindSafe for ExtensionCacheKey
impl Send for ExtensionCacheKey
impl Sync for ExtensionCacheKey
impl Unpin for ExtensionCacheKey
impl UnsafeUnpin for ExtensionCacheKey
impl UnwindSafe for ExtensionCacheKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.