pub struct Changelog(/* private fields */);Expand description
Represents a changelog file.
This uses the keep a changelog format to parse and generate changelogs. There is very limited support for deviation from this format so the changelog should not yet be manually edited.
Implementations§
Source§impl Changelog
impl Changelog
Sourcepub fn description(&self) -> Option<MultilineText<'_>>
pub fn description(&self) -> Option<MultilineText<'_>>
Gets the changelog description.
Sourcepub fn add_release(&mut self, release: impl Into<Release>) -> &mut Self
pub fn add_release(&mut self, release: impl Into<Release>) -> &mut Self
Adds a new release to the changelog.
Sourcepub fn with_release(self, release: impl Into<Release>) -> Self
pub fn with_release(self, release: impl Into<Release>) -> Self
Builds the changelog with the given release.
Sourcepub fn get_release(&self, version: impl AsRef<str>) -> Option<ReleaseRef<'_>>
pub fn get_release(&self, version: impl AsRef<str>) -> Option<ReleaseRef<'_>>
Gets a release for the given version.
Sourcepub fn releases(&self) -> impl Iterator<Item = ReleaseRef<'_>>
pub fn releases(&self) -> impl Iterator<Item = ReleaseRef<'_>>
Gets an iterator over the releases.
Sourcepub fn references(&self) -> impl Iterator<Item = ReferenceRef<'_>>
pub fn references(&self) -> impl Iterator<Item = ReferenceRef<'_>>
Gets an iterator over the references.
Trait Implementations§
impl Eq for Changelog
Auto Trait Implementations§
impl Freeze for Changelog
impl RefUnwindSafe for Changelog
impl Send for Changelog
impl Sync for Changelog
impl Unpin for Changelog
impl UnsafeUnpin for Changelog
impl UnwindSafe for Changelog
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
fn to_owned_equivalent(&self) -> <Q as ToOwned>::Owned
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.