cargo::util

# 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§