pub trait DependencyCreation {
type DependenciesConfig;
// Provided method
fn dependency_install_configs(
configuration: Self::DependenciesConfig,
) -> Result<Vec<ModuleInstallConfig>, AbstractInterfaceError> { ... }
}
Expand description
Trait to access module dependency information tied directly to the type.
Required Associated Types§
Sourcetype DependenciesConfig
type DependenciesConfig
Type that exposes the dependencies’s configurations if that’s required.
Provided Methods§
Sourcefn dependency_install_configs(
configuration: Self::DependenciesConfig,
) -> Result<Vec<ModuleInstallConfig>, AbstractInterfaceError>
fn dependency_install_configs( configuration: Self::DependenciesConfig, ) -> Result<Vec<ModuleInstallConfig>, AbstractInterfaceError>
Function that returns the ModuleInstallConfig
for each dependent module.
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.