Struct sentry_release_parser::Version [−][src]
pub struct Version<'a> { /* fields omitted */ }
Expand description
Represents a parsed version.
Implementations
Parses a version from a string.
Converts the version into a semver.
Requires the semver
feature.
If a build code is included returns that.
Returns the build code as build number.
Returns the number of components.
Returns the raw version as string.
It’s generally better to use to_string
which normalizes.
Returns the part of the version raw before the build code.
This is useful as the system can mis-parse some versions and instead of formatting out the version from the parts, this can be used to format out the version part as it was input by the user but still abbreviate the build code.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Version<'a>
impl<'a> UnwindSafe for Version<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more