[−][src]Struct rustsec::version::VersionReq
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 Clone for VersionReq
[src]
fn clone(&self) -> VersionReq
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VersionReq
[src]
impl<'de> Deserialize<'de> for VersionReq
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for VersionReq
[src]
impl Eq for VersionReq
[src]
impl From<VersionReq> for VersionReq
[src]
fn from(version_req: VersionReq) -> VersionReq
[src]
impl From<VersionReq> for VersionReq
[src]
fn from(version_req: VersionReq) -> VersionReq
[src]
impl FromStr for VersionReq
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
impl Ord for VersionReq
[src]
fn cmp(&self, other: &VersionReq) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<VersionReq> for VersionReq
[src]
fn eq(&self, other: &VersionReq) -> bool
[src]
fn ne(&self, other: &VersionReq) -> bool
[src]
impl PartialOrd<VersionReq> for VersionReq
[src]
fn partial_cmp(&self, other: &VersionReq) -> Option<Ordering>
[src]
fn lt(&self, other: &VersionReq) -> bool
[src]
fn le(&self, other: &VersionReq) -> bool
[src]
fn gt(&self, other: &VersionReq) -> bool
[src]
fn ge(&self, other: &VersionReq) -> bool
[src]
impl Serialize for VersionReq
[src]
impl StructuralEq for VersionReq
[src]
impl StructuralPartialEq for VersionReq
[src]
impl TryFrom<VersionReq> for VersionReq
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(other: VersionReq) -> Result<VersionReq, Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for VersionReq
impl Send for VersionReq
impl Sync for VersionReq
impl Unpin for VersionReq
impl UnwindSafe for VersionReq
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,