pub trait CacheEntry:
Any
+ Send
+ Sync {
// Required method
fn cost(&self) -> usize;
}Expand description
Cached values expose their memory cost directly to the cache backends.
Required Methods§
Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".