pub trait LoadingValidation {
// Required method
fn check<C: GlobalConfig>(
config: &C,
ident: Ident,
) -> Result<(), InvalidConfigError>;
}
Expand description
Allows to verify configs are valid for a loader
Required Methods§
Sourcefn check<C: GlobalConfig>(
config: &C,
ident: Ident,
) -> Result<(), InvalidConfigError>
fn check<C: GlobalConfig>( config: &C, ident: Ident, ) -> Result<(), InvalidConfigError>
Verify that configs are valid for a loader, otherwise return an error stating why
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.