Skip to main content

VersionExt

Trait VersionExt 

Source
pub trait VersionExt {
    // Required method
    fn to_tag(&self) -> String;
}
Expand description

Extension trait to provide a consistent “tag” string representation for versions.

Required Methods§

Source

fn to_tag(&self) -> String

Returns a string representation of the version in the format “vX.Y.Z”

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VersionExt for Version

Source§

fn to_tag(&self) -> String

Implementors§