pub trait SelectableVersion: Display {
// Required methods
fn is_prerelease(&self) -> bool;
fn major(&self) -> u64;
fn minor(&self) -> u64;
fn patch(&self) -> u64;
}Expand description
A version type the select_version algorithm can operate on.
Implemented in this crate for both node_semver::Version and
semver::Version. The impls live here (rather than in the ecosystem
crates) because both the Node and GitHub registries resolve
node_semver::Version; a per-crate impl would violate the orphan rule.
Required Methods§
Sourcefn is_prerelease(&self) -> bool
fn is_prerelease(&self) -> bool
Whether this version carries a pre-release tag (e.g. -rc.1).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".