[][src]Struct mozversion::Version

pub struct Version {
    pub major: u64,
    pub minor: u64,
    pub patch: u64,
    pub pre: Option<(String, u64)>,
}

Version number information

Fields

major: u64

Major version number (e.g. 55 in 55.0)

minor: u64

Minor version number (e.g. 1 in 55.1)

patch: u64

Patch version number (e.g. 2 in 55.1.2)

pre: Option<(String, u64)>

Prerelase information (e.g. Some(("a", 1)) in 55.0a1)

Methods

impl Version[src]

pub fn matches(&self, version_req: &str) -> Result<bool, Error>[src]

Trait Implementations

impl Default for Version[src]

impl Clone for Version[src]

impl Display for Version[src]

impl FromStr for Version[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Unpin for Version

impl Sync for Version

impl Send for Version

impl UnwindSafe for Version

impl RefUnwindSafe for Version

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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