Trait 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.
Performs copy-assignment from
source
.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more