pub struct ReleaseUnitVersion {
pub current: Version,
pub next: Version,
pub bump: Bump,
}Expand description
Current and next version of a release unit.
Fields§
§current: VersionLatest final version tag on the first-parent history.
next: VersionCurrent version after the aggregate intent bump.
bump: BumpAggregate intent bump.
Implementations§
Source§impl ReleaseUnitVersion
impl ReleaseUnitVersion
Sourcepub fn new(current: Version, bump: Bump) -> Self
pub fn new(current: Version, bump: Bump) -> Self
Compute release-unit versions from a current tag and aggregate bump.
Sourcepub fn new_with_mapping(
current: Version,
bump: Bump,
mapping: Pre1BumpMapping,
) -> Self
pub fn new_with_mapping( current: Version, bump: Bump, mapping: Pre1BumpMapping, ) -> Self
Compute release-unit versions with an explicit pre-1.0 interpretation.
Trait Implementations§
Source§impl Clone for ReleaseUnitVersion
impl Clone for ReleaseUnitVersion
Source§impl Debug for ReleaseUnitVersion
impl Debug for ReleaseUnitVersion
impl Eq for ReleaseUnitVersion
Source§impl PartialEq for ReleaseUnitVersion
impl PartialEq for ReleaseUnitVersion
impl StructuralPartialEq for ReleaseUnitVersion
Auto Trait Implementations§
impl Freeze for ReleaseUnitVersion
impl RefUnwindSafe for ReleaseUnitVersion
impl Send for ReleaseUnitVersion
impl Sync for ReleaseUnitVersion
impl Unpin for ReleaseUnitVersion
impl UnsafeUnpin for ReleaseUnitVersion
impl UnwindSafe for ReleaseUnitVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.