pub trait Caches<T: ?Sized>:
Hash
+ Eq
+ Clone
+ CanCollect {
// Required method
fn cached(&self) -> &T;
}Expand description
A container which can be used to cache values of type T
Required Methods§
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.