VersionInfo

Trait VersionInfo 

Source
pub trait VersionInfo {
    // Required methods
    fn version_string(&self) -> &str;
    fn is_yanked(&self) -> bool;

    // Provided methods
    fn is_prerelease(&self) -> bool { ... }
    fn features(&self) -> Vec<String> { ... }
}
Expand description

Legacy version information trait.

§Deprecation Notice

This trait is deprecated. Use Version trait instead.

Required Methods§

Source

fn version_string(&self) -> &str

Version string (e.g., “1.0.214”, “14.21.3”).

Source

fn is_yanked(&self) -> bool

Whether this version is yanked/deprecated.

Provided Methods§

Source

fn is_prerelease(&self) -> bool

Whether this version is a pre-release (alpha, beta, rc, etc.).

Default implementation checks for common pre-release patterns.

Source

fn features(&self) -> Vec<String>

Available feature flags (empty if not supported by ecosystem).

Implementors§