Struct sentry_release_parser::Version [−][src]
pub struct Version<'a> { /* fields omitted */ }Expand description
Represents a parsed version.
Implementations
impl<'a> Version<'a>[src]
impl<'a> Version<'a>[src]pub fn parse(version: &'a str) -> Result<Version<'a>, InvalidVersion>[src]
pub fn parse(version: &'a str) -> Result<Version<'a>, InvalidVersion>[src]Parses a version from a string.
pub fn as_semver(&self) -> Version[src]
pub fn as_semver(&self) -> Version[src]Converts the version into a semver.
Requires the semver feature.
pub fn build_code(&self) -> Option<&str>[src]
pub fn build_code(&self) -> Option<&str>[src]If a build code is included returns that.
pub fn build_number(&self) -> Option<u64>[src]
pub fn build_number(&self) -> Option<u64>[src]Returns the build code as build number.
pub fn components(&self) -> u8[src]
pub fn components(&self) -> u8[src]Returns the number of components.
Trait Implementations
impl<'a> StructuralPartialEq for Version<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Version<'a>
impl<'a> Send for Version<'a>
impl<'a> Sync for Version<'a>
impl<'a> Unpin for Version<'a>
impl<'a> UnwindSafe for Version<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more