pub trait ValueKey:
Send
+ Sync
+ 'static {
// Required methods
fn equals(&self, other: &dyn ValueKey) -> bool;
fn hash_dyn(&self, state: &mut dyn Hasher);
fn type_id(&self) -> TypeId;
fn as_any(&self) -> &dyn Any;
}Expand description
上下文 Value key 约束:可比较、可哈希、’static。