pub trait UnsizedCacheKey {
type ValueType: 'static + ?Sized;
// Required methods
fn key(&self) -> Cow<'_, str>;
fn type_name() -> &'static str;
}Expand description
Required Associated Types§
Required Methods§
fn key(&self) -> Cow<'_, str>
Sourcefn type_name() -> &'static str
fn type_name() -> &'static str
Short, stable string identifying this value type.
See CacheKey::type_name for requirements.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.