IOptionalFeatureProvider
trait · ferroui-base · v0.5.0
trait IOptionalFeatureProvider
Something that can expose optional, backend-specific features by type.
Features are looked up by the TypeId of the feature's type, which may be
a trait object type (TypeId::of::<dyn IFoo>()); the returned value then
holds an Rc<dyn IFoo>, or an Arc<dyn IFoo> for a feature that is
shared by threads.
Members
try_get_feature
fn try_get_feature(self: &Self, feature_type: TypeId) -> Option<Rc<dyn Any>>
Queries for an optional feature.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.