pub struct DistVersion(/* private fields */);
Expand description
DistVersion
represents full semver range according to the node release
Implementations§
Source§impl DistVersion
impl DistVersion
Sourcepub fn list_versions(release_dir: &ReleaseDir) -> SnmRes<Vec<Self>>
pub fn list_versions(release_dir: &ReleaseDir) -> SnmRes<Vec<Self>>
To list all the installed versions
Sourcepub fn match_versions(
r_dir: &ReleaseDir,
version: &UserVersion,
) -> SnmRes<Vec<Self>>
pub fn match_versions( r_dir: &ReleaseDir, version: &UserVersion, ) -> SnmRes<Vec<Self>>
To match multiple installed versions with a provided user version
Sourcepub fn match_version(r_dir: &ReleaseDir, version: &UserVersion) -> SnmRes<Self>
pub fn match_version(r_dir: &ReleaseDir, version: &UserVersion) -> SnmRes<Self>
To match a installed version with the user provided version
Trait Implementations§
Source§impl AsRef<Version> for DistVersion
impl AsRef<Version> for DistVersion
Source§impl Debug for DistVersion
impl Debug for DistVersion
Source§impl<'de> Deserialize<'de> for DistVersion
impl<'de> Deserialize<'de> for DistVersion
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DistVersion
impl Display for DistVersion
Source§impl Hash for DistVersion
impl Hash for DistVersion
Source§impl Ord for DistVersion
impl Ord for DistVersion
Source§fn cmp(&self, other: &DistVersion) -> Ordering
fn cmp(&self, other: &DistVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParseVersion for DistVersion
impl ParseVersion for DistVersion
Source§impl PartialEq for DistVersion
impl PartialEq for DistVersion
Source§impl PartialOrd for DistVersion
impl PartialOrd for DistVersion
impl Eq for DistVersion
impl StructuralPartialEq for DistVersion
Auto Trait Implementations§
impl Freeze for DistVersion
impl RefUnwindSafe for DistVersion
impl Send for DistVersion
impl Sync for DistVersion
impl Unpin for DistVersion
impl UnwindSafe for DistVersion
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<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.