pub trait ObjectProviderExt {
// Required methods
fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T>;
fn request_value<T: 'static>(&self) -> Option<T>;
}
Expand description
Methods supported by all ObjectProvider
implementors.
Required Methods§
Sourcefn request_ref<T: ?Sized + 'static>(&self) -> Option<&T>
fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T>
Request a reference of type &T
from an object provider.
Sourcefn request_value<T: 'static>(&self) -> Option<T>
fn request_value<T: 'static>(&self) -> Option<T>
Request an owned value of type T
from an object provider.
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.