pub struct Version { /* private fields */ }
Available on crate feature
parse
only.Expand description
A parsed proto::Version.
This parses only for compatible versions. See version::semver_req
.
Implementations§
Source§impl Version
impl Version
Sourcepub fn version(&self) -> &Version
pub fn version(&self) -> &Version
Returns the semantic version of this version.
See proto::Version::major_number, proto::Version::minor_number and proto::Version::patch_number.
Trait Implementations§
impl StructuralPartialEq 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