pub trait ModuleDefLookup:
Sized
+ Debug
+ 'static {
type Key<'a>: Debug + Copy;
// Required methods
fn key(&self) -> Self::Key<'_>;
fn lookup<'a>(
module_def: &'a ModuleDef,
key: Self::Key<'_>,
) -> Option<&'a Self>;
}Expand description
Implemented by definitions stored in a ModuleDef.
Allows looking definitions up in a ModuleDef, and across
ModuleDefs during migrations.
Required Associated Types§
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.