[][src]Struct rustsec::VersionReq

pub struct VersionReq { /* fields omitted */ }

Version requirements


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 From<VersionReq> for VersionReq[src]

impl From<VersionReq> for VersionReq[src]

impl Clone for VersionReq[src]

impl Eq for VersionReq[src]

impl Ord for VersionReq[src]

impl PartialEq<VersionReq> for VersionReq[src]

impl PartialOrd<VersionReq> for VersionReq[src]

impl Display for VersionReq[src]

impl Debug 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, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

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