pub trait DefaultForPlatformVersion: Sized {
type Error;
// Required method
fn default_for_platform_version(
platform_version: &PlatformVersion,
) -> Result<Self, Self::Error>;
}Required Associated Types§
Required Methods§
Sourcefn default_for_platform_version(
platform_version: &PlatformVersion,
) -> Result<Self, Self::Error>
fn default_for_platform_version( platform_version: &PlatformVersion, ) -> Result<Self, Self::Error>
Performs the conversion.
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.