Struct uvm_install2::Version
source · pub struct Version { /* private fields */ }
Implementations§
source§impl Version
impl Version
pub fn new( major: u64, minor: u64, patch: u64, release_type: VersionType, revision: u64 ) -> Version
pub fn from_path<P>(path: P) -> Result<Version, VersionError>
pub fn a(major: u64, minor: u64, patch: u64, revision: u64) -> Version
pub fn b(major: u64, minor: u64, patch: u64, revision: u64) -> Version
pub fn p(major: u64, minor: u64, patch: u64, revision: u64) -> Version
pub fn f(major: u64, minor: u64, patch: u64, revision: u64) -> Version
pub fn release_type(&self) -> &VersionType
pub fn version_hash(&self) -> Result<String, VersionError>
pub fn major(&self) -> u64
pub fn minor(&self) -> u64
pub fn patch(&self) -> u64
pub fn revision(&self) -> u64
pub fn find_version_in_file<P>(path: P) -> Result<Version, VersionError>
pub fn base(&self) -> &Version
pub fn as_semver(&self) -> Version
pub fn set_version_hash<S>(&mut self, hash: Option<S>)
pub fn has_version_hash(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
source§fn deserialize<D>(
deserializer: D
) -> Result<Version, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Version, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Installation> for Version
impl From<Installation> for Version
source§fn from(item: Installation) -> Version
fn from(item: Installation) -> Version
Converts to this type from the input type.
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq for Version
impl PartialEq for Version
source§impl PartialOrd for Version
impl PartialOrd for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Version
impl Serialize for Version
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<&Path> for Version
impl TryFrom<&Path> for Version
§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
source§impl TryFrom<PathBuf> for Version
impl TryFrom<PathBuf> for Version
§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
impl Eq for Version
impl StructuralEq for Version
Auto Trait Implementations§
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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.