pub trait ContextExt: Context {
// Provided method
fn lookup<T: Object>(&self, id: &ObjectId) -> Result<Arc<T>, LookupError> { ... }
}
Expand description
Extension trait for Context
.
This is a separate trait so that Context
can be object-safe.
Provided 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.