pub trait AsVersion {
// Required method
fn into_version(self) -> Result<Version, ParseError>;
}Expand description
Trait for converting an argument into a Version
Required Methods§
Sourcefn into_version(self) -> Result<Version, ParseError>
fn into_version(self) -> Result<Version, ParseError>
Convert the argument into a Version
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".