pub struct Version { /* private fields */ }
Implementations§
Source§impl Version
impl Version
pub fn new( major: u64, minor: u64, patch: u64, release_type: ReleaseType, revision: u64, ) -> Version
pub fn release_type(&self) -> ReleaseType
pub fn major(&self) -> u64
pub fn minor(&self) -> u64
pub fn patch(&self) -> u64
pub fn revision(&self) -> u64
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, VersionError>
pub fn from_string_containing<S: AsRef<str>>(s: S) -> Result<Self, VersionError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
Source§impl TryFrom<&Path> for Version
impl TryFrom<&Path> for Version
Source§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
Source§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
impl Eq for Version
Auto Trait Implementations§
impl Freeze for Version
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