pub struct VersionReq {
pub semver: FrameworkVersion,
pub is_strict: bool,
}
Expand description
Crate version requirements, as expressed in Cargo.toml. A very crude version.
TODO: replace with semver::VersionReq at some point.
Fields§
§semver: FrameworkVersion
§is_strict: bool
Implementations§
Source§impl VersionReq
impl VersionReq
pub fn from_version_str(raw: &str) -> Option<Self>
pub fn from_version_str_or_latest(raw: &str) -> Self
pub fn strict(self) -> Self
pub fn into_string(self) -> String
Trait Implementations§
Source§impl Clone for VersionReq
impl Clone for VersionReq
Source§fn clone(&self) -> VersionReq
fn clone(&self) -> VersionReq
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VersionReq
impl Debug for VersionReq
Source§impl PartialEq for VersionReq
impl PartialEq for VersionReq
impl Eq for VersionReq
impl StructuralPartialEq for VersionReq
Auto Trait Implementations§
impl Freeze for VersionReq
impl RefUnwindSafe for VersionReq
impl Send for VersionReq
impl Sync for VersionReq
impl Unpin for VersionReq
impl UnwindSafe for VersionReq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.