pub struct Version {
pub major: u64,
pub minor: u64,
pub patch: u64,
pub none: bool,
}Expand description
Version struct for standard version extraction from executables via --version output
Fields§
§major: u64Major version component.
minor: u64Minor version component.
patch: u64Patch version component.
none: booltrue if no version could be extracted (i.e. the version is unavailable).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin 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