VersionParser

Trait VersionParser 

Source
pub trait VersionParser {
    // Required methods
    fn parse_version(output: &str) -> Option<String>;
    fn is_valid_version(version: &str) -> bool;
    fn compare_versions(a: &str, b: &str) -> Ordering;
}
Expand description

Version parser interface

Required Methods§

Source

fn parse_version(output: &str) -> Option<String>

Parse version from tool output

Source

fn is_valid_version(version: &str) -> bool

Validate version format

Source

fn compare_versions(a: &str, b: &str) -> Ordering

Compare two versions

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.

Implementors§