pub trait Lookup {
type Database<'db>: ?Sized;
type Data;
// Required method
fn lookup(&self, db: &Self::Database<'_>) -> Self::Data;
}
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Lookup {
type Database<'db>: ?Sized;
type Data;
// Required method
fn lookup(&self, db: &Self::Database<'_>) -> Self::Data;
}