Trait wasm_cache::CacheKey
source · pub trait CacheKey<M = ()>: Debug + Invalidatable<M> + 'static {
// Required methods
fn any(&self) -> &(dyn Any + 'static);
fn any_eq(&self, other: &dyn Any) -> bool;
fn any_ord(&self, other: &dyn Any) -> Ordering;
fn clone_boxed(&self) -> Box<dyn CacheKey<M>>;
}Expand description
Trait for arbitrary cache keys.
Cache keys are arbitrary Rust types that are sortable and comparable.
Required Methods§
fn any(&self) -> &(dyn Any + 'static)
fn any_eq(&self, other: &dyn Any) -> bool
fn any_ord(&self, other: &dyn Any) -> Ordering
fn clone_boxed(&self) -> Box<dyn CacheKey<M>>
Trait Implementations§
source§impl<M: 'static> PartialEq for dyn CacheKey<M>
impl<M: 'static> PartialEq for dyn CacheKey<M>
source§impl<M: 'static> PartialOrd for dyn CacheKey<M>
impl<M: 'static> PartialOrd for dyn CacheKey<M>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more