[][src]Struct uvm_core::Version

pub struct Version { /* fields omitted */ }

Methods

impl Version[src]

pub fn new(
    major: u64,
    minor: u64,
    patch: u64,
    release_type: VersionType,
    revision: u64
) -> Version
[src]

pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Version>[src]

pub fn a(major: u64, minor: u64, patch: u64, revision: u64) -> Version[src]

pub fn b(major: u64, minor: u64, patch: u64, revision: u64) -> Version[src]

pub fn p(major: u64, minor: u64, patch: u64, revision: u64) -> Version[src]

pub fn f(major: u64, minor: u64, patch: u64, revision: u64) -> Version[src]

pub fn release_type(&self) -> &VersionType[src]

pub fn version_hash(&self) -> Result<String>[src]

pub fn major(&self) -> u64[src]

pub fn minor(&self) -> u64[src]

pub fn patch(&self) -> u64[src]

pub fn revision(&self) -> u64[src]

pub fn find_version_in_file<P: AsRef<Path>>(path: P) -> Result<Version>[src]

Trait Implementations

impl AsMut<Version> for Version[src]

impl<'_> AsRef<Version> for Manifest<'_>[src]

impl AsRef<Version> for Version[src]

impl Clone for Version[src]

impl Debug for Version[src]

impl<'de> Deserialize<'de> for Version[src]

impl Display for Version[src]

impl Eq for Version[src]

impl From<(u64, u64, u64, u64)> for Version[src]

impl From<Installation> for Version[src]

impl FromStr for Version[src]

type Err = UvmVersionError

The associated error which can be returned from parsing.

impl Hash for Version[src]

impl Ord for Version[src]

impl PartialEq<Version> for Version[src]

impl PartialOrd<Version> for Version[src]

impl Serialize for Version[src]

impl StructuralEq for Version[src]

impl StructuralPartialEq for Version[src]

impl<'_> TryFrom<&'_ Path> for Version[src]

type Error = UvmVersionError

The type returned in the event of a conversion error.

impl TryFrom<PathBuf> for Version[src]

type Error = UvmVersionError

The type returned in the event of a conversion error.

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

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,