cargo::util::semver_ext

Trait VersionExt

Source
pub trait VersionExt {
    // Required methods
    fn is_prerelease(&self) -> bool;
    fn to_req(&self, op: Op) -> VersionReq;

    // Provided methods
    fn to_exact_req(&self) -> VersionReq { ... }
    fn to_caret_req(&self) -> VersionReq { ... }
}

Required Methods§

Source

fn is_prerelease(&self) -> bool

Source

fn to_req(&self, op: Op) -> VersionReq

Provided Methods§

Implementations on Foreign Types§

Source§

impl VersionExt for Version

Source§

fn is_prerelease(&self) -> bool

Source§

fn to_req(&self, op: Op) -> VersionReq

Implementors§