pub struct Version { /* private fields */ }Expand description
A simple representation of a semantic version.
Implementations§
Source§impl Version
impl Version
Sourcepub fn major(&self) -> u32
pub fn major(&self) -> u32
Returns the major version number.
If the major version number is not present in the version string, this will return 0.
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