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§

source

#### fn to_exact_req(&self) -> VersionReq

source

#### fn to_caret_req(&self) -> VersionReq

## Implementations on Foreign Types§

source§

### impl VersionExt for Version

source§

#### fn is_prerelease(&self) -> bool

source§

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

## Implementors§