Skip to main content

AsVersion

Trait AsVersion 

Source
pub trait AsVersion {
    // Required method
    fn into_version(self) -> Result<Version, ParseError>;
}
Expand description

Trait for converting an argument into a Version

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl AsVersion for &str

Source§

impl AsVersion for String

Implementors§