[][src]Struct rustsec::VersionReq

pub struct VersionReq { /* fields omitted */ }

Version requirements

Methods

impl VersionReq[src]

pub fn parse(input: &str) -> Result<Self, Error>[src]

Parse a version requirement from a string

pub fn matches(&self, version: &Version) -> bool[src]

Match the given Version against this VersionReq

Trait Implementations

impl Eq for VersionReq[src]

impl Clone for VersionReq[src]

impl PartialOrd<VersionReq> for VersionReq[src]

impl PartialEq<VersionReq> for VersionReq[src]

impl Ord for VersionReq[src]

impl From<VersionReq> for VersionReq[src]

impl From<VersionReq> for VersionReq[src]

impl Debug for VersionReq[src]

impl Display for VersionReq[src]

impl TryFrom<VersionReq> for VersionReq[src]

type Error = Error

The type returned in the event of a conversion error.

impl FromStr for VersionReq[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for VersionReq[src]

impl<'de> Deserialize<'de> for VersionReq[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]