Struct mozversion::Version
[−]
[src]
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]
fn from_str(version_string: &str) -> Result<Version, Error>
fn matches(&self, version_req: &str) -> Result<bool, Error>
Trait Implementations
impl Default for Version
[src]
impl Clone for Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more