pub trait ErasedKey: Any + Send + Sync + 'static { // Required methods fn name(&self) -> &'static str; fn typehash(&self) -> u64; fn typename(&self) -> &'static str; }
A trait for type-erased keys.
The name of the key.
The typehash of the key’s associated type.
The typename of the key’s associated type.
Downcast a type-erased key to a specific key type.