pub struct ReleaseNote { /* private fields */ }Expand description
What one version brought, for a ReleaseNotes.
Implementations§
Source§impl ReleaseNote
impl ReleaseNote
Sourcepub fn new(version: impl Into<String>, title: impl Into<String>) -> Self
pub fn new(version: impl Into<String>, title: impl Into<String>) -> Self
A note on version, as the app words it, with the title of the release.
Sourcepub fn changes(
self,
changes: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn changes( self, changes: impl IntoIterator<Item = impl Into<String>>, ) -> Self
The list of what changed.
Sourcepub fn section(
self,
heading: impl Into<String>,
text: impl Into<String>,
) -> Self
pub fn section( self, heading: impl Into<String>, text: impl Into<String>, ) -> Self
Adds a block of text with a heading, after what is already there.
Sourcepub fn code(self, code: impl Into<String>) -> Self
pub fn code(self, code: impl Into<String>) -> Self
Adds a CodeBlock, after what is already there.
Trait Implementations§
Source§impl Clone for ReleaseNote
impl Clone for ReleaseNote
Source§fn clone(&self) -> ReleaseNote
fn clone(&self) -> ReleaseNote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ReleaseNote
impl !Send for ReleaseNote
impl !Sync for ReleaseNote
impl !UnwindSafe for ReleaseNote
impl Freeze for ReleaseNote
impl Unpin for ReleaseNote
impl UnsafeUnpin for ReleaseNote
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